Unnecessary storage variables can be changed to immutable
to save gas
#200
Labels
bug
Something isn't working
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
StakingRewards
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-11-vader/blob/429970427b4dc65e37808d7116b9de27e395ce0c/contracts/staking-rewards/StakingRewards.sol#L24-L25
Some storage variables include
rewardsToken
andstakingToken
are unnecessary as they will never be changed.Change to
immutable
can save gas.The text was updated successfully, but these errors were encountered: