Skip to content

neeyno/hardhat-dex

Repository files navigation

Description

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.


Getting Started

Requirements

  • 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

Usage

  • Deploy
yarn hardhat deploy
  • Test
yarn hardhat test

About

Basic decentralized exchange smart contract

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published