Open code423n4 opened 2 years ago
Dravee
The compiler won't reserve a storage slot for immutable variables
immutable
The following variables are initialized in the contract's constructor and can't get updated after:
Factory.sol:registry Factory.sol:ownership Parameters:ownership BondingPremium:ownership Registry:ownership Vault:ownership
VS Code
Make these variables immutable
address token can be immutable as well
Handle
Dravee
Vulnerability details
Impact
The compiler won't reserve a storage slot for
immutable
variablesProof of Concept
The following variables are initialized in the contract's constructor and can't get updated after:
Tools Used
VS Code
Recommended Mitigation Steps
Make these variables
immutable