Basic decentralized exchange app
| Explore Smart Contract
| Explore Frontend |
| View DEMO |
Decentralized exchange smart contract allows any user to swap ETH for ERC-20 tokens and vise versa. The contract implements the Automated Market Maker (AMM) and Liquidity Pool. Dex market based on x*y=k price curve that maintains liquidity. These features encourage users to supply assets to the Liquidity pool and gain profits on trading fee. At the current state the contract supports one token pair.
- git
git --version
- Nodejs
node --version
- Yarn
yarn --version
instead of npm - clone repo
git clone https://github.com/neeyno/hardhat-dex
cd hardhat-dex
yarn
- Deploy
yarn hardhat deploy
- Test
yarn hardhat test