In DaiGoldAuction
contract, when new auction starts, nextAuctionGoldAmount
is set to 0
. It means that all of the tokens, from previous auction, can only be claimed by users that participated in that auction and no tokens are being auctioned during new round. It is possible that during an auction there are no bids. In this scenario all of the tokens from that auction are going to be stuck in the DaiGoldAuction
.
After auction starts it is not possible to recover TGLD tokens in any way.
Add this test to DaiGoldAuction.t.sol
inside DaiGoldAuctionTest
contract.
Run forge test --match-test "test_auction_without_bids" -vvvv
to see the outputs.
TGLD token balance of the DaiGoldAuction
contract is greater than totalAuctionTokenAmount
. It means that some tokens are not being auctioned in the next auction and are going to be stuck in the contract.
When auction with no bids happens, tokens that were supposed to be sold will be stuck in auction contract.
Create similar function as recoverAuctionTokenForZeroBidAuction
inside SpiceAuction
contract. Allow it to recover tokens from zero bid auction. When auction has concluded and 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.