Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Reward calculation can leave some dust

Summary

Reward calculation can leave some dust

Vulnerability Details

ThePredicter::withdrawal reward calculation can leave some dust in specific scenarios while dividing by totalShares. This dust will be unable to withdraw

reward = maxScore < 0
? entranceFee
: (shares * players.length * entranceFee) / totalShares;

Impact

Low

Tools Used

Manual review

Recommendations

Consider handling remained dust by organizer

Updates

Lead Judging Commences

NightHawK Lead Judge 12 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Dust amount might remain

Small amount of funds can remain stuck in contract due to a precision loss.

Support

FAQs

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