The first user who calls TempleGoldStaking.sol stake() with 1 wei can inflate the rewardPerTokenStored. And the same user can call withdraw and drain the rewards.
Since rewardPerToken() depends on the denominator as totalSupply(), the whole multiplying will be divided by 1 wei which will inflate the rewardPerTokenStored.
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.