The code design covers the start of the auction, bidding, and claiming, but does not take into account the situation where Temple Gold is unsold. Therefore, if Temple Gold is unsold, it will be stuck and cannot enter the next auction.
As the documentation says,Temple gold is non-transferrable(https://codehawks.cyfrin.io/c/2024-07-templegold),Temple gold that has been distributed from the TempleGold contract to the DaiGoldAuction contract cannot be transferred out in other ways.
A similar vulnerability in Sherlock is considered medium risk: https://github.com/sherlock-audit/2024-03-axis-finance-judging/issues/94
All auctions are susceptible to being unsold. The DaiGoldAuction contract only includes scenarios for starting the auction, bidding, and user claims after the auction concludes. It does not handle scenarios where Temple Gold cannot be sold. Therefore, if Temple Gold cannot be sold, it will be stuck, unable to be transferred or added to future Temple Gold auctions.
Manual review
Added handling of temple gold when no one bids. For example, after the auction ends and no one bids, the temple gold of the auction will be transferred to `nextAuctionGoldAmount`
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.