Submitted by hyh
notifyRewardAmount will be inoperable if rewardsDuration is set to zero. If will cease to produce meaningful results if rewardsDuration is too small or too big.
The setter does not control the value, allowing zero/near zero/enormous duration:
StakingRewards.sol#L178-185
Division by the duration is used in notifyRewardAmount:
StakingRewards.sol#L143-156
Check for min and max range in the rewardsDuration setter, as too small or too big rewardsDuration breaks the logic.
ryuheimat (Concur) confirmed
Alex the Entreprenerd (judge) commented:
