Change unnecessary storage variables to constants can save gas #85
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
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-11-overlay/blob/1833b792caf3eb8756b1ba5f50f9c2ce085e54d0/contracts/OverlayV1UniswapV3Market.sol#L14-L14
Some storage variables include
X96
will not never be changed and they should not be.Changing them to
constant
can save gas.The text was updated successfully, but these errors were encountered: