You can find the course here: [https://www.udemy.com/course/how-to-actually-build-flashloan-arbitrage-bots]
As my inaugural course, I recognize there's a lot of room for improvement. By making this repository public, I aim to enhance accessibility and foster collaboration among learners.
This project is now open source, and I enthusiastically encourage contributions. Feel free to submit pull requests and improvements. For more information please contact me at vgabrielmarian21@gmail.com
Steps to initiate the project:
- run yarn install || npm install
- run npx hardhat typechain
- run "npx hardhat node --fork https://gateway.tenderly.co/public/polygon" (or choose your own Polygon rpc url to fork)
- set the env variable "PROVIDER_URL" to be "http://127.0.0.1:8545/" (your local hardhat fork)
- add your TEST private key (DO NOT USE A PRIVATE KEY THAT HOLDS REAL FUNDS) in the env file as "PRIVATE_KEY"
- run "npx hardhat run scripts/deployDodoFlashloan --network localhost"
- the address of your flashloan contract was printed in your terminal, copy and paste it as "FLASHLOAN_ADDRESS" env variable
- you can now run "npx hardhat run scripts/arbitrage --network localhost" or "npx hardhat test test/index.test.ts"