AuctionSettled event should only be emitted when an auction is actually completed through sale execution, indicating the final winner and sale price.
The current implementation incorrectly emits AuctionSettled during regular bid placement in the placeBid() function, misleading external systems and users about the auction's actual status. (Line 143)
Likelihood: High
This event is emitted on every valid bid placement call
Impact: Medium
Off-chain systems may incorrectly assume auctions are completed when they're still active
Frontend applications may display wrong auction status to users
The PoC demonstrates how the AuctionSettled event is incorrectly emitted during a regular bid placement, even though the auction remains active and hasn't been settled.
Add the test below to the BidBeastsMarketPlaceTest.t.sol with event:
Run the test with:
Remove the incorrect AuctionSettled event emission from the placeBid() function.
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.