20,000 USDC
View results
Submission Details
Severity: gas
Valid

Staking - Assuming 18 decimals

Summary

Tokens may have more or less than 18 decimals, protocol is wrongly assuming that TKN has 18 decimals

Vulnerability Details

Protocol is wrongly assuming that TKN has 18 decimals

Impact

Wrong math will make protocol and users loose tokens.

Tools Used

manual revision

Recommendations

Instead of fixed 18 use TKN.decimals()

Support

FAQs

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