code-423n4 / 2022-01-openleverage-findings

0 stars 0 forks source link

Immutable variables #240

Closed code423n4 closed 2 years ago

code423n4 commented 2 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 gas costs. Examples of such variables are: Airdrop.sol

  IERC20 public token;

Adminable.sol

  address payable public developer;

OLETokenLock.sol

  OLEToken public token;

Reserve.sol

  IERC20 public oleToken;

Please review all the state variables and apply immutable where possible.

ColaM12 commented 2 years ago

Duplicate to #11