Kovan Deprecated and in Goerli, DAI/ETH price feed is missing in chainlink docs #1690
-
Hey guys! Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Skip the testnet part of the course, thanks! |
Beta Was this translation helpful? Give feedback.
-
@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 a bit more work, and they're not quite exactly the same (I mean, it is a crypto testnet) but as an alternative to just not being able to do it on Goerli, it's an option... |
Beta Was this translation helpful? Give feedback.
@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…