In closePot()::Pot.sol
, playersToRewards
should be used instead of claimants
.
In closePot()::Pot.sol
, claimants
is used but it is the wrong variable :
Because, as seen in claimCut()::Pot.sol
function :
https://github.com/Cyfrin/2024-08-MyCut/blob/main/src/Pot.sol#L45
==> claimants
are the players who have already claimed their cut. It is not the appropriate variable.
It will lead to a false track of who claimed and who is going to be rewarded after 90 minus a cut.
Users who have already claimed will be rewarded again, with a cut of 10 percent.
==> And users who haven't claimed
before 90 days, won't ever be rewarded !
Github, VisualCode.
Use playersToRewards
instead of claimants
.
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.