Skip to content

Kovan Deprecated and in Goerli, DAI/ETH price feed is missing in chainlink docs #1690

Answered by bensacc
ManiBharathiSS asked this question in Q&A
Discussion options

You must be logged in to vote

@ManiBharathiSS (@PatrickAlphaC I encountered the same thing and noticed Goerli does have contracts for DAI/USD and ETH/USD. So, it's a bit more effort but you could implement both of these and then just compute the cross-currency rate and use that. I'm having some other issues with Goerli at the moment, but I tested it on a mainnet-fork and got the following result:

Pdb) dai_eth_price
0.000714220165096707
(Pdb) dai_usd_price
1.00039645e-10
(Pdb) eth_usd_price
1.38852736923e-07
(Pdb) dai_usd_price / eth_usd_price
0.0007204729789048121
(Pdb) dai_usd_price * (1 / eth_usd_price) <-- technically, you would want DAI/USD * USD/ETH, but these are mathematically equivalent)
0.0007204729789048121

a…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PatrickAlphaC
Comment options

Answer selected by ManiBharathiSS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants