AlchemistVault.sol
can be optimised
#100
Labels
bug
Something isn't working
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
0x0x0x
Vulnerability details
Proof of Concept
There is no need to cache calculation steps between the return values.
L98-L122
is as follows:Which can be replaced by following code to save gas:
Tools Used
Manual analysis
The text was updated successfully, but these errors were encountered: