Sparkn

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

Usage of fee on transfer tokens will result in funds lock

Summary

In case the tokens with fee on the transfer are used for the distribution, the calculations will be incorrect and the tokens will be locked in the contract.

Vulnerability Details

The calculation of amounts for the winners in performed using the totalAmount amount value. In case the fee on transfer token is used, it is impossible to calculate the amounts correctly.

Impact

Due to incorrect calculations, the transaction for distribution will always revert and all the tokens will be locked in the contract.

Tools Used

VS Code

Recommendation

Verify if token has fee on transfer and calculate the amounts taking into account the fees.

Support

FAQs

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