Auction.userClaimableArbTokens claimablePerc calculations can be simplified #50
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
claimablePerc
is calculated in two steps, which can be made simpler.https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/Auction.sol#L294
Recommended Mitigation Steps
Now:
To be (
totalTokens
isn't used elsewhere):The text was updated successfully, but these errors were encountered: