Skip to content
RED SAGSkills
medium10 pts · first answer countssmart-contract-securityoraclesarithmetic

Mixing oracle and token decimals

A Chainlink ETH/USD feed returns prices with 8 decimals. A contract multiplies it with an 18-decimal ETH amount and divides by 1e18 to get a USD value it treats as 18 decimals. What is wrong?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions