https://github.com/Cyfrin/2024-08-fjord/blob/main/src/FjordAuction.sol
totalBids == 0
), the auctionEnd()
function transfers all auction tokens to the owner. However, the claimTokens()
function can still be called by users, which could lead to failed transactions or confusion as there are no tokens to claim User Confusion: Users may attempt to claim tokens even though no bids were placed, leading to failed transactions.
Poor User Experience: Unnecessary interactions could frustrate users.
Manual Review
Add a check in the claimTokens()
function to ensure it cannot be called if there are no 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.