Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low
Valid

Rounding error in disribute for lop

Summary

Rounding Error leading to loss of winner's token

Vulnerability Details

In _distribute() there is chance of rounding error when the BASIS_POINTS which (pre-decided) is greater than (totalAmount * percentages[i]) leading to amount=0

Impact

token will be send to STADIUM_ADDRESS and loss of tokens to winner

Tools Used

Manual review

Recommcendations

calculated amount should be checked !=0 before transferring

Support

FAQs

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