Description:
Location in Code: The end
function.
If no bids are placed above the starting price, the assertion assert(self.starting_price.read() < self.highest_bid.read(), 'No bids');
prevents the auction from ending.
The NFT remains locked in the contract indefinitely.
Impact:
The NFT owner loses access to their NFT.
Funds and assets become irretrievable, causing financial loss.
Proof of Code:
Recommendation:
Modify the end
function to handle cases with no bids.
Return the NFT to the owner if no valid bids were made.
Corrected Code:
If there are no placed bids in the auction, the `end` function will always revert. The owner can not receive back the nft ant it will be locked in the contract.
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.