Distribution::_validatePool
allows to validate pool with zero rewardDecrease
.
The function only checks that decreaseInterval
is bigger than zero. I understand that pools are only created by the Owner and won't complain if this issue is invalidated, but that check still doesn't prove that the Pool has a valid reward decrease. Therefore, the protocol will lose funds, due to more rewards being paid out in a pool.
Function:
As said above, users of that particular pool will get more rewards than they should, therefore, protocol will lose those funds.
Manual Review
Implement the check for rewardDecrease
:
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.