Prehistoric Rosewood Goose
Medium
In the "BidClaimed" event, the 3rd parameter should be "buyReserveAmount" not "sellCouponAmount".
https://github.com/sherlock-audit/2024-12-plaza-finance/blob/main/plaza-evm/src/Auction.sol#L59
The naming discrepancy can mislead developers and auditors, as the emitted event in the "claimBid()" function (line 356) correctly uses "bidInfo.buyReserveAmount".
No response
No response
No response
No response
Usability: Developers may misinterpret the purpose of the variable, leading to incorrect assumptions and potential bugs during feature implementation or debugging.
Audit Risk: Incorrect variable name in event logs could result in incorrect interpretations of recorded transactions.
Emission of the event in the "claimBid()" function (Auction.sol line 356) uses "bidInfo.buyReserveAmount" as expected
Change the 3rd parameter name from "sellCouponAmount" to "buyReserveAmount"
// Auction.sol, #59
- event BidClaimed(uint256 indexed bidIndex, address indexed bidder, uint256 sellCouponAmount);
+ event BidClaimed(uint256 indexed bidIndex, address indexed bidder, uint256 buyReserveAmount);