Closed code423n4 closed 2 years ago
defsec
'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.
Code Review
Mark variables as immutable.
In the referenced contract, the variables cannot be immutable because they need to be set in an initialize() function.
initialize()
Agree, immutable variables must be set within the constructor.
immutable
constructor
Handle
defsec
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.
Proof of Concept
Tools Used
Code Review
Recommended Mitigation Steps
Mark variables as immutable.