Several state variables that should be immutable are declared as regular state variables, leading to unnecessary storage reads.
The following variables should be marked as immutable:
In PerpetualVault:
In VaultReader:
These values are set once in the constructor and never changed, making them perfect candidates for immutable variables.
Increased gas costs for reading state variables
Unnecessary storage operations
Higher transaction costs for users
Mark appropriate variables as immutable:
In PerpetualVault
In VaultReader
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.