Description:
When Pot.sol::closePot
function distribute the remaining rewards is dividing that amount into the number of players to distribute into the claimants. When the number of players is greater than the number of claimants a amount will remaining in the contract
Impact:
The Readme of this project claims that the remainder is distributed equally to those who claimed in time, but this is not the case because always will be a locked remaining in the contract if there are players that didn't claim, duet o the remaining amount is divided into the number of players when it should be divided into the number of claimants.
This will happens always this scenario happens and it is not an expected behavior
The README of this project states that the remainder is distributed equally to those who claimed in time. However, but this is not the case because. A portion of the remaining balance will always be locked in the contract if some players do not claim, as the remainder is divided among the total number of players rather than just the claimants. This issue will consistently occur in such scenarios and is not the expected behavior
Proof of Concept:
Paste next code in the TestMyCut.sol file
Recommended Mitigation:
Consider divide into the number of claimant instead of number of players.
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.