closePot()::Pot.sol
should check for <= 90 days
instead of < 90 days
to strictly follow the protocol rules in description.
https://github.com/Cyfrin/2024-08-MyCut/blob/main/src/Pot.sol#L50-L52
It should be <= 90
and not < 90
because in the description it is said :
"allowing authorized claimants 90 days to claim before the manager takes a cut..."
=> meaning at 90 days
a user should still be able to claim !
=> Change the timestamp
to be exactly at 90 days after deployment
.
=> Try to execute closePot()::Pot.sol
=> You can see that the transaction does not revert, meaning it is possible to close the Pot exactly at 90 days after deployment, which is 1 day before the restriction period.
Rule of the protocol not respected, misleading the end user.
Github, VisualCode, Foundry.
Replace #L50-L52
with:
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.