code-423n4 / 2021-11-vader-findings

0 stars 0 forks source link

immutable variables #243

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

'immutable' greatly reduces gas costs. There are variables that do not change so they can be marked as immutable to greatly improve the gas costs. Examples of such variables are _name in BasePool _name, _vaderPool and _updatePeriod in TwapOracle, vader in XVader.

0xstormtrooper commented 2 years ago

https://github.com/code-423n4/2021-11-vader-findings/issues/38