rewardAmount equals to zero check is missing in the TempleGoldStaking contract.
There is no check of zero value of rewardAmount though in the comment it is mentioned that revert if next reward is 0 .
It does not revert when the next reward amount is 0.
Manual Review
Put the proper check in the line
if ( rewardAmount == 0 ||rewardAmount < rewardDuration ) { revert CommonEventsAndErrors.ExpectedNonZero(); }
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.