The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

Decimals not handled correctly

Summary

Chainlink Decimals and Token Decimals over here are not taken care of in a right manner.
Due to different chainlink decimals for different conversions, results in invalid calculation of the variable costInEuros

Vulnerability Details

Due to not considering the chainlink decimals when conversion of tokens can result in inaccurate results and loss of tokens.
If the chainlink decimals for assetPriceUsd and priceEurUsd are different the result will be inaccurate and results in wrong calculation of costInEuros.

Impact

Token amount is calculated inaccurately.

Tools Used

Manual

Recommendations

Use chainlink decimals correctly

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

chainlink-decimals

informational/invalid

billobaggebilleyan Submitter
over 1 year ago
hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

chainlink-decimals

informational/invalid

Support

FAQs

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