Bid Beasts

First Flight #49
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Impact: high
Likelihood: high
Invalid

Auction Duration is 15 Minutes Instead of 3 Days

Docs say auctions last 3 days, but code starts the timer only on the first bid and sets it to 15 minutes, with each new bid extending it by 15 minutes.
This causes issues:

  • If no bid is placed, the auction never starts.

  • If bidders keep bidding near the deadline, it could be extended indefinitely.

  • The 3-day auction guarantee is broken.

Fix:
Set the auction end time when the NFT is listed:
listings[tokenId] = Listing({
seller: msg.sender,
minPrice: _minPrice,
buyNowPrice: _buyNowPrice,
auctionEnd: block.timestamp + 3 days,
listed: true
});

Updates

Lead Judging Commences

cryptoghost Lead Judge
2 months ago
cryptoghost Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!