Players should have a full 90‑day window to claim their rewards starting from the moment the pot is actually funded (i.e., when tokens become available for payout). The manager should only be able to close the pot after this 90‑day funded window elapses.
The pot’s closing gate uses the deployment timestamp (i_deployedAt) rather than the funding timestamp. If the manager funds the pot long after creation, players effectively get less than 90 days to claim before the pot can be closed. In extreme cases, the manager could close without ever funding for most of the period, then fund shortly before closing, leaving claimants with only a few days (or even zero days) to claim.
Likelihood: Medium
Operationally, contests are often created ahead of time and funded later (e.g., after sponsor confirmations or treasury movements). Whenever funding occurs after deployment, the shortened window manifests automatically.
Managers routinely close pots when the (deploy‑based) 90 days elapse, so the issue occurs in regular workflows whenever funding is delayed.
Impact: Medium
Fairness violation / policy breach: Claimants receive less than the promised 90 days to claim, undermining contest rules and user trust.
Premature closure and fund mismanagement: Closing can be triggered before 90 days since funding, potentially redistributing unclaimed funds early and creating disputes or support burden.
Copy the code below to TestMyCut.t.sol.
Run command forge test --mt testLateFundingShortensTheClaimPeriod.
Track funding time and use it to gate closure and claims.
Also block claims before funding.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.