This is a sample project in order to compute the exchange rates of the three pairs(ETH/DAI,YFI/ETH,CRV/ETH) on Uniswap. The rates are updated once a new block confirmed.
Each pair in Uniswap has its own liquadity pool. So that, if you want to calculate the exchange rate of each pair, you must calcuate the quanity ratio of the two tokens of a pair. For more information, please see the following links: ethereum.stackexchange.com
This project was bootstrapped with Create React App.
In order to install the project requirements, run the command in the project root directory
In the project directory, you can run:
Note: You can connect Metamask or any other wallets to the project. Ensure to connect your wallet to the mainnet if you want to run the project correctly!
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.