Closed code423n4 closed 2 years ago
pedroais
gas saving
Variables that are settled in the initializer function and never changed could be immutable to save gas https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/LaunchEvent.sol#L56
We are using initialize method, immutable variables can only be set in constructor.
Handle
pedroais
Vulnerability details
Impact
gas saving
Proof of Concept
Variables that are settled in the initializer function and never changed could be immutable to save gas https://github.com/code-423n4/2022-01-trader-joe/blob/a1579f6453bc4bf9fb0db9c627beaa41135438ed/contracts/LaunchEvent.sol#L56