MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

Players can still claim their cut even after the 90 days have passed

Summary

Players can still claim their cut after 90 days

Vulnerability Details

The claimCut() function does not include a time check to restrict players from claiming their cut after the deadline has passed

Impact

Without the time check, players can claim their cut way after the deadline has elapsed

Tools Used

Unit test

Recommendations

Add a check at the beginning of the claimCut() function in Pot.sol:

function claimCut() public {
//++
require(block.timestamp - i_deployedAt < 90 days, "Deadline Passed");
Updates

Lead Judging Commences

equious Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.