Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

Stuck funds if all players have negative or zero scores

Summary

There's no mechanism to handle stuck funds in the contract, which could occur if all players end up with negative or zero scores.

Vulnerability Details

In the withdraw function, if all players have negative or zero scores, the reward calculation will result in zero for all players.

Impact

Funds could become permanently locked in the contract with no way to withdraw them.

Tools Used

Manual code review

Recommendations

Modify the withdraw function to follow the documentation and refund all the players.

Updates

Lead Judging Commences

NightHawK Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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