Gas Optimization: Cache result of BlockNumber.get()
#142
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
gzeon
Vulnerability details
Impact
Result of
BlockNumber.get()
can be cached before the for loop.to
Proof of Concept
https://github.com/code-423n4/2022-01-timeswap/blob/bf50d2a8bb93a5571f35f96bd74af54d9c92a210/Timeswap/Timeswap-V1-Core/contracts/TimeswapPair.sol#L361
The text was updated successfully, but these errors were encountered: