TempleGold

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

Missing check of rewardAmount equals to zero might create problem in the reward distribution

Summary

rewardAmount equals to zero check is missing in the TempleGoldStaking contract.

Vulnerability Details

There is no check of zero value of rewardAmount though in the comment it is mentioned that revert if next reward is 0 .

Impact

It does not revert when the next reward amount is 0.

Tools Used

Manual Review

Recommendations

Put the proper check in the line
if ( rewardAmount == 0 ||rewardAmount < rewardDuration ) { revert CommonEventsAndErrors.ExpectedNonZero(); }

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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