This is the smart contract where users can perform token swap.
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.
$ npx hardhat run ./scripts/AMMSelector/deploy.ts --network kovan
copy and paste the contract address to address.json after contract deployment
$ npx hardhat run ./scripts/AMMSelector/approve.ts --network kovan
$ npx hardhat run ./scripts/AMMSelector/preview.ts --network kovan
$ npx hardhat run ./scripts/AMMSelector/swap.ts --network kovan