The placeBid function in the BidBeastsNFTMarket contract contains an incorrect comparison operator for first bid validation. The current logic requires the first bid to be strictly greater than the minimum price, preventing users from placing valid bids exactly at the minimum price threshold.
Likelihood:
Users attempting to bid exactly at the minimum price will have their transactions reverted
This affects all first bids on any NFT listing
The issue is deterministic and will occur every time someone tries to bid at minimum price
Common user behaviour to start bidding at the advertised minimum price
Impact:
Reduced user experience due to unexpected transaction failures
Users must bid higher than the intended minimum price, increasing costs
Potential confusion about actual minimum bidding requirements
Gas waste from reverted transactions
Inconsistent behaviour compared to standard auction mechanics
This test demonstrates that a bid placed exactly at MIN_PRICE (which should be valid) gets reverted due to the strict greater-than comparison.
This change enables users to place valid first bids at the exact minimum price, aligning with standard auction expectations and the intended behaviour of the minimum price parameter.
First bid validation uses > instead of >=, preventing valid starting 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.