Skip to main content

New answers tagged

1 vote

Using Chainlink Oracle to compare prices with Uniswap

Hope you are doing good! :) You can normally get the decimal value in the price feed. There should be a decimal() function in the interface, so you can get the decimal value and format it.
Elif Hilal Umucu's user avatar
1 vote

Using Chainlink Oracle to compare prices with Uniswap

You can get the number of decimals in the corresponding Chainlink Price Feed by calling the decimals view function, and then format the same to 18 decimals as per your requirement, like: (, int256 ...
SYED ASAD KAZMI's user avatar

Top 50 recent answers are included