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

0 stars 0 forks source link

immutable variables #243

Closed code423n4 closed 3 years ago

code423n4 commented 3 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 3 years ago

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