Auction.userClaimableArbTokens nonzero auction.finalPrice check is redundant #49
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
hyh
Vulnerability details
Proof of Concept
As there is a check in the beginning of the function that includes the
auction.finalPrice == 0
condition:https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Auction.sol#L285
Recommended Mitigation Steps
The same condition down the line is never true and its check is redundant:
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Auction.sol#L298
The text was updated successfully, but these errors were encountered: