After 90 days, the owner can close the pot and distribute the remaining tokens equally among the players who have claimed their rewards. However, the rewards are currently being calculated based on the total player count, which needs to be changed to distribute only among the players who have claimed their rewards.
The test failed because, after the closepot function is called by the owner, there is still a remaining balance of reward tokens in the pot contract.
Incorrect calculation of rewards will lock the reward tokens permanently in the pot contract.
Vscode, Foundry
use claimants.length for claimCut calculation
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.