TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: low
Invalid

variable define but not used in #TempleGoldStaking

Summary

in TempleGoldStaking contract rewardPerTokenStored defined but not using in whole code

Vulnerability Details

in TempleGoldStaking contract reqardPerTokenStored defined at

https://github.com/Cyfrin/2024-07-templegold/blob/57a3e597e9199f9e9e0c26aab2123332eb19cc28/protocol/contracts/templegold/TempleGoldStaking.sol#L40

uint256 public override rewardPerTokenStored;

this not used in whole code

Impact

unnessesory holding variable

Tools Used

manual review

Recommendations

not used variable should be removed

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.