New answers tagged price
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.
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 ...
Top 50 recent answers are included
Related Tags
price × 113solidity × 20
tokens × 20
uniswap × 17
erc-20 × 12
chainlink × 12
ether × 11
nft × 9
decentralized-exchange × 9
oracles × 8
transactions × 7
gas × 7
gas-price × 7
uniswapv3 × 6
contract-development × 5
blockchain × 5
javascript × 4
etherscan × 4
ico × 4
exchanges × 4
crowdsale × 4
web3js × 3
remix × 3
contract-design × 3
erc-721 × 3