The division of remaining tokens among claimants might result in rounding issues, leaving some tokens undistributed.
In the closePot
function, after the manager takes their cut, the remaining tokens are distributed equally among claimants. Due to Solidity's integer division, small amounts of tokens can be left behind.
Some rewards will not be distributed to users, leading to potential user dissatisfaction and fairness concerns.
Manual review
Instead of relying on integer division, implement logic to distribute all tokens or handle the remaining small amount by assigning it to the last claimant.
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.