AuctionSettled Event Emitted on New Bid, leads to displaying wrong data to off-chain servicesThe contract should emit events that accurately reflect the actions being taken. BidPlaced should be emitted for new bids, and AuctionSettled for the final sale.
The placeBid function incorrectly emits an AuctionSettled event when a new regular bid is made. This provides misleading data to off-chain services and UIs, suggesting an auction has concluded when it is still active.
Likelihood: High
This incorrect event is emitted for every non-buy-now bid placed on any auction.
Impact: Low
Funds are not at risk.
The state of the contract is handled incorrectly from an events perspective, disrupting off-chain monitoring and potentially confusing users.
The following test should prove that, the event is emitted wrongfully. Add it to BidBeastsMarketPlaceTest.t.sol:
Remove the event emission from placeBid and move it to settleAuction where it should be:
placeBid emits AuctionSettled even though the auction hasn’t ended, causing misleading event logs.
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.