Description Case where none of the players withdraw their share of the reward within the stipulated interval,or ,no one is able to withdraw their share of the reward which is in the case of Pausable
token contracts like BNB
.
After 90 days
the remainingRewards
still equals the totalRewards
in the pot, and the claimants array has 0 players in it.
The pot has two ways to withdraw out the tokens:
One is through claimCut
, which cannot be called after 90 days
Second is through the closePot
.
When the owner calls the closePot
function, during the calculation of claimantsCut it divides the total value by 0, which results in an error causing the whole transaction to revert.
Thus tokens stay locked in the pot.
Impact Tokens might be locked in the pot forever.
Recommended Mitigation Put in an additional check which transfers the complete tokens back to the manager in case of zero withdrawals.
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.