The DaiGoldAuction
contract lacks a mechanism to recover the TGLD auction tokens when there are no bids for the epoch auction.
As a result, the TGLD
tokens will be locked in the DaiGoldAuction
contract.
The DaiGoldAuction
contract lacks a mechanism to recover the TGLD
auction tokens when there are no bids for the epoch auction.
Additionally, the DaiGoldAuction.recoverToken()
does not support this recovery process.
The TGLD
tokens will be locked in the DaiGoldAuction
contract and will be unrecoverable.
Setup
Put the snippet below into the protocol test suite: test/forge/templegold/DaiGoldAuction.t.sol
Run test: forge test --mt test_auction_with_no_bid -vvv
Working Test Case
Results of running the test:
Foundry
Manual Review
Update the DaiGoldAuction
contract to include a mechanism that allows the recovery of TGLD
tokens when there are no bids for an epoch auction.
This could involve adding a function that can be called by onlyElevatedAccess
to recover unauctioned tokens.
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.