Events like AuctionSettled are meant to signal the completion of an auction, including the final winner, seller, and price, to allow off-chain applications to accurately track and react to auction outcomes.
In the placeBid function, the AuctionSettled event is emitted prematurely in the regular bidding logic path, before any actual settlement occurs, which can confuse event listeners and lead to incorrect assumptions about the auction's status.
Likelihood:
Bidders place regular bids that do not trigger the buy-now option
Off-chain services subscribe to events for real-time updates on auction settlements
Impact:
Frontends or indexers display false settlement notifications, leading to user confusion
Potential errors in data aggregation or analytics without impacting on-chain funds or state
Add the following test function into the existing tests in `BidBeastsMarketPlaceTest.t.sol`
Remove the misplaced event emission from the bidding path, as the correct emission already occurs in _executeSale upon actual settlement. This ensures events accurately reflect state changes.
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.