No upper limit inside of TempleGoldStaking::setVestingPeriod()
function.
If by mistake the one that has elevatedAccess
sets huge period of time, this could be unwanted situation. In the worst case scenario this could be 136 years.
The elevatedAccess sets a big amount of period in seconds that could go up to 136 years in the worst case since there is only a check for under a week.
Play this test inside TempleGoldStaking.t.sol::TempleGoldStakingTest
Manual Review
Add a constant variable that has reasonable upper bounds and check it inside the setVestingPeriod()
function.
This is also the case for setRewardDuration()
function right below the setVestingPeriod()
function.
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.