code-423n4 / 2022-01-yield-findings

1 stars 0 forks source link

Some variables can be set immutable #130

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

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

devtooligan commented 2 years ago

dup of #42