Testing the uniswap flashloans. Deployed the flashloan contract with hardhat and tested with main net ethereum fork with hardhat
UniFlash flashloan example It borrows from Uniswap DAI/USDC 0.05% pool fee Swaps 1500 DAI for 55.66 UNI on Kyber Swap 55.66 UNI for 1505.61 DAI on Uniswap Payback 4.86 DAI (profit) to deployer and give back 1500 DAI + 0.05% fee to Uniswap. Deployed the flashloan contract with hardhat and tested with main net ethereum fork with hardhat. Added homescreen button for skynet and github action deploy-to-skynet
How it's made
Setup Environment Variables
You’ll need an ALCHEMY_MAINNET_RPC_URL environment variable. You can get one from Alchemy website for free.
Then, you can create a .env file with the following.