The Checks rewardAmount < rewardDuration
in distributeRewards()
could be problematic towards the ending of TampleGold
minting when it reach near its limits.
In minting contract of Temple Gold there is strict requirement that MINIMUM_MINT = 10000 ether
but this could be adjusted towards ending
And this minting amount split in 3 parts with predefined ratio and 1part comes to Staking contract as Reward
In this staking contract in distributeReward()
it has check that
where rewardDuration
should be always > WEEK
So at end This distributeReward()
could always revert if Reward amount decreased from WEEK value
Manual review
Should reconsider this
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.