TempleGold tokens are at risk of being stuck on DaiGoldAuction
when an auction epoch has no DAI bids on it.
DaiGoldAuction
contract does not handle the case of no DAI bids being made to the contract since they expect that participants are always incentivized to bid, especially if there are no bids so far - then the ONLY bidder takes the entire amount of tokens reserved for that epoch.
But in the case that no bids are made for an epoch - the TempleGold funds reserved for that round become unrecoverable.
This is an edge case that we felt must be addressed.
Vulnerability also stems from the fact that recoverToken()
can only be called before the auction starts
Funds ( TempleGold tokens ) are unrecoverable from DaiGoldAuction
contract.
Impact is put as low since an unlikely condition must be met - but after we hear what the sponsors think, we will think of escalating it to a medium.
Paste this in DaiGoldAuction.t.sol
foundry, manual review
Implement mechanism for recovering entire balance of TempleGold tokens from DaiGoldAuction
contract or implement a mechanism for recovering funds from epochs that haven't had any bids.
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.