Auction.userClaimableArbTokens amountOut calculations can be simplified #67
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
Impact
Gas is overspent on access and operations.
Proof of Concept
amountOut
is calculated in 3 steps, which can be made simpler.https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Auction.sol#L302-305
Recommended Mitigation Steps
Now:
To be (
amountTokens
andredeemedTokens
aren't used elsewhere):The text was updated successfully, but these errors were encountered: