code-423n4 / 2021-10-tracer-findings

0 stars 0 forks source link

Immutable state variables #32

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

pauliax

Vulnerability details

Impact

There are variables that do not change so they can be marked as immutable to greatly improve the gast costs. Examples of such variables are: scaler and oracle in ChainlinkOracleWrapper, factory in PoolCommitterDeployer, poolName in LeveragedPool and there are many more.

Recommended Mitigation Steps

Consider applying 'immutable' to reduce gas costs.

GalloDaSballo commented 3 years ago

Agree with finding, would prefer a list of links with list of variables