Peer-to-peer marketplace for exchanging ETH and an arbitrary token (LRT in this example) in a non-custodial manner. Includes availability for liquidity pool contribution to earn fee rewards based on the percent share.
Based on Uniswap V1 structure.
- Run npm install --save-dev hardhat
- Run npm install --save-dev @nomiclabs/hardhat-ethers ethers
- Run npm install --save-dev @openzeppelin/contracts
- Run npx hardhat node
- In a seperate terminal run npx hardhat run --network localhost scripts/deploy_token.js & run --network localhost scripts/deploy_exchange.js
- Open web_app/index.html in your browser
- Choose current address in the top right
- Add to liquidity pool or swap tokens (Only address 1 starts with both ETH and LRT)
CS 251 Project 4: DEX