Skip to content

Instantly share code, notes, and snippets.

@mcchan1
Created February 10, 2021 15:55
Show Gist options
  • Save mcchan1/45bdda9da5cd0c06785e1f0f695602f2 to your computer and use it in GitHub Desktop.
Save mcchan1/45bdda9da5cd0c06785e1f0f695602f2 to your computer and use it in GitHub Desktop.
Use Chainlink to convert US Dollars to ETH
@mcchan1
Copy link
Author

mcchan1 commented Feb 10, 2021

constructor(address _priceFeed) public { priceFeed = AggregatorV3Interface(_priceFeed); }

Use any of these priceFeed addresses https://docs.chain.link/docs/ethereum-addresses for different pairs

@envatic
Copy link

envatic commented Jul 25, 2022

Any explanation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment