Sparkn

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

Decimals of ERC20 that are used in the protocol should have decimals greater than 2

// amount = (balanceOf)Tokens have different decimals * percentage / basis_Point;
uint256 amount = uint256(69)*uint256(10**2) * uint256(1) /uint256(10_000);

Impact

Truncating amount to 0

Mitigation Steps

consider not to whitelist tokens less than 3 decimals

Support

FAQs

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

Give us feedback!