Arbitrage Bot on Ethereum using Aave platform

Cryptocurrency & Blockchain 600 USD
Job 3 of 3
Arbitrage Bot dex A,dex B on Ethereum using Aave Flash Loan.

1. Take USDC Flash Loan from Aave
2. USDC/DAI price at dexA > dexB
3. Sell USDC.Buy DAI at dexA
4. Sell DAI Buy USDC at dexB
5. return amount + fees
6. Withdraw profit

Setup:

1.Hardhat, Remix IDE,VS Code
2.Install Aave Core V3,ethers.js,openzeppelin dependencies

Smartcontracts:

FlashLoan.sol
requestFlashLoan()
executeOperation()

FlashLoanArbitrage.sol

depositUSDC()
buyDAI()
depositDAI()
sellDAI()
approveUSDC()
allowanceUSDC()
approveDAI()
allowanceDAI()

Dex.sol implements

depositUSDC()
depositDAI()
buyDAI()
sellDAI()