TempleGold tokens cannot be recovered when there are no bids for a certain auction epoch.
In the DaiGoldAuction contract batches of TempleGold tokens are offered to bidders who deposit DAI. Once an epoch finishes, each bidder can claim their share of TempleGold according to how much DAI they deposited.
Line 161 defines the amount of TempleGold tokens that belong to each bidder for the given epochId
.
However, this only applies when there is at least one bidder. If there are no DAI offers for a certain epoch, then nobody would be able to claim the batch of TempleGold tokens. Additionally, there is no recovery process implemented in the contract. The recoverToken()
function only applies to auctions for the current epoch that are in the cooldown period.
Auctioned TempleGold tokens will be lost for epochs that have no bidders. The DaiGoldAuction contract doesn't implement any recovery process for these scenarios, leading to a potential loss of funds.
None.
Add an owner accessible function to recover tokens from auctions without bidders by checking that the given epoch has finished and that totalBidTokenAmount == 0
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.