MyCut

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

The Call To `closePot()` Can Be Front-run

Summary

Function ContestManager::closeContest() that executes Pot::closePot() can be frontrun by any players who have not yet claimed their cuts.

Vulnerability Details

If front-running occurs, the manager's cut will be smaller.

Impact

Smaller amount for manager.

Tools Used

Manual review.

Recommendations

Consider preventing calls to claimCut() when block.timestamp exceeds the claim deadline.

Updates

Lead Judging Commences

equious Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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