Beginner FriendlyFoundryBridge
100 EXP
View results
Submission Details
Severity: high
Invalid

Wrong Token computation for tokens whose decimals != 18

Summary

In the implementation it is assumed that all the tokens have 18 decimals this is not true because some tokens like USDT have 6 decimals this will mean that there will be some errors during the computation

Vulnerability Details

when computing some tokens like USDT will error out since not all of them have 18 decimals

Impact

Errors like precision loss will arise as there is possibility that some of the tokens that are added will have less decimals

Tools Used

manual analysis

Recommendations

modify the implementation to handle the decimals of tokens to be dynamic so that is adjusts accordingly this will help ensure compatibility with various tokens

Updates

Lead Judging Commences

0xnevi Lead Judge
about 2 years ago
0xnevi Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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