Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: low
Invalid

Loss of funds when tierPrice is less than 5

Summary

The platformFee is always 0 if the tierPrice is less than 5 which leads to loss of fees for the platform

Vulnerability Details

In the function joinDAOyou are calculating the platform fee with the following code:

uint256 platformFees = (20 * tierPrice) / 100;

Where the tierPrice is variable of type uint256. However if the tier price is 1,2,3,4 the platform fee is always 0 because of the precision loss.

Impact

Loss of fees

Tools Used

manual review

Recommendations

Fix the precision loss or create minimum amount for tierPrice

Updates

Lead Judging Commences

0xbrivan2 Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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