Example of Flash Swaps involving
- Aave
- Uniswap
- Quickswap
- Sushiswap
Run the following command.
git clone repo clone link
Right now this repo only works with hardhat mainnet fork.
You'll need an ALCHEMY_API_KEY environment variable for polygon chain.
Then, you can create a .env file with the following.
ALCHEMY_API_KEY='<your-own-alchemy-mainnet-rpc-url>'
PRIVATE_KEY='<your-own-private-key>'
Run the following command.
npm install
Run the following command.
npm run compile
Run the following command.
npm run swap