https://github.com/Cyfrin/2024-07-templegold/blob/57a3e597e9199f9e9e0c26aab2123332eb19cc28/protocol/contracts/templegold/TempleGoldStaking.sol#L39-L40
https://github.com/Cyfrin/2024-07-templegold/blob/57a3e597e9199f9e9e0c26aab2123332eb19cc28/protocol/contracts/templegold/TempleGoldStaking.sol#L44-L47
In TempleGoldStaking
contract, we have 3 unused public variable: rewardPerTokenStored
, periodFinish
,lastUpdateTime
. Instead, it is replaced with rewardData
variable, which is a struct type:
Because those 3 public variables is unused, it's view function will always return to 0
, which can lead to integration issues
Manual Review
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.