Closed code423n4 closed 2 years ago
throttle
Gas savings
Some variables can be set immutable: https://github.com/code-423n4/2022-01-yield/blob/main/contracts/ConvexYieldWrapper.sol#L17 https://github.com/code-423n4/2022-01-yield/blob/main/contracts/ConvexStakingWrapper.sol#L41-L45
Manual review
Change to immutable
dup of #42
Handle
throttle
Vulnerability details
Impact
Gas savings
Proof of Concept
Some variables can be set immutable: https://github.com/code-423n4/2022-01-yield/blob/main/contracts/ConvexYieldWrapper.sol#L17 https://github.com/code-423n4/2022-01-yield/blob/main/contracts/ConvexStakingWrapper.sol#L41-L45
Tools Used
Manual review
Recommended Mitigation Steps
Change to immutable