Skip to content

cfengliu/amm-test-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMM Test Project

This is the smart contract where users can perform token swap.

Usage

Before running any command, you need to create a .env file and set a BIP-39 compatible mnemonic as an environment variable. Follow the example in .env.example. If you don't already have a mnemonic, use this website to generate one.

Deploy

$ npx hardhat run ./scripts/AMMSelector/deploy.ts --network kovan

Edit address.json

copy and paste the contract address to address.json after contract deployment

Approve the contract

$ npx hardhat run ./scripts/AMMSelector/approve.ts --network kovan

Preview the amount

$ npx hardhat run ./scripts/AMMSelector/preview.ts --network kovan

Swap token

$ npx hardhat run ./scripts/AMMSelector/swap.ts --network kovan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published