After 90 days the pot can be closed by the ContestManager contract, the ContestManager takes 10% of the remaining and sends the rest to the people who claimed. It divides the remaining funds and sends them individually to the people who claim. The problem here is that some tokens have around 2 decimals. Such tokens could easily pose a risk.
For example, there are 1000 recipients and 10000 tokens to share equally, 999 claimed so the remaining tokens are 10.
The manager takes 10% which is 1, so the number of tokens remaining to share with the claimant is 9.
Remember the token has two decimal places so the real value is 900, if we divide 900 by 999 we will get 0.
So zero will be transferred to every claimant, this could potentially revert or just waste gas for the owner.
Funds will be lost forever because zero will be sent to all the claimants.
Waste of gas for the called
Revert due to zero transfer error, so the manager doesn't get their cut.
Manual Analysis
if the total funds remaining are smaller than the claimants send everything to the owner.
Don't use tokens with very small decimal places.
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.