Bid Beasts

First Flight #49
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Valid

Incorrect event is triggered in BidBeastsNFTMarket::placeBid

Description\

AuctionSettled event is triggered every time in function `BidBeastsNFTMarket::placeBid. That is not correct because actually the auction is not settled yet. This can affect external integrations that rely on events.

function placeBid(uint256 tokenId) external payable isListed(tokenId) {
...
if (listing.buyNowPrice > 0 && msg.value >= listing.buyNowPrice) {
...
return;
}
require(msg.sender != previousBidder, "Already highest bidder");
@> emit AuctionSettled(tokenId, msg.sender, listing.seller, msg.value);
...
}

Risk

Likelihood: High

Event is triggered on every bid.

Impact: Low

It affects only events.

Recommended Mitigation

Remove the event triggering from the function:

- emit AuctionSettled(tokenId, msg.sender, listing.seller, msg.value);
Updates

Lead Judging Commences

cryptoghost Lead Judge about 1 month ago
Submission Judgement Published
Validated
Assigned finding tags:

BidBeasts Marketplace: Incorrect Event Emission

placeBid emits AuctionSettled even though the auction hasn’t ended, causing misleading event logs.

Support

FAQs

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