Create an Aave Flash Loan arbitrage smart contract from scratch in this comprehensive flash loan tutorial by Block Explorer.
https://github.com/waveboy800/aave-flashloan
https://docs.aave.com/developers/guides/flash-loans https://docs.aave.com/developers/deployed-contracts/v3-testnet-addresses
0xDF1742fE5b0bFc12331D8EAec6b478DfDbD31464
0xA2025B15a1757311bfD68cb14eaeFCc237AF5b43
0x5E52dEc931FFb32f609681B8438A51c675cc232d
import {FlashLoanReceiverBase} from "https://github.com/aave/protocol-v2/blob/master/contracts/flashloan/base/FlashLoanReceiverBase.sol";
import {ILendingPool} from "https://github.com/aave/protocol-v2/blob/master/contracts/interfaces/ILendingPool.sol";
import {ILendingPoolAddressesProvider} from "https://github.com/aave/protocol-v2/blob/master/contracts/interfaces/ILendingPoolAddressesProvider.sol";
import {IERC20} from "https://github.com/aave/protocol-v2/blob/master/contracts/dependencies/openzeppelin/contracts/IERC20.sol";
npx hardhat run --network goerli scripts/deployDex.js
0xD6e8c479B6B62d8Ce985C0f686D39e96af9424df
npx hardhat run --network goerli scripts/deployFlashLoan.js
0x438949474510066964C635a20aACF3b085d11e02
npx hardhat run --network goerli scripts/deployFlashLoanArbitrage.js
0xbF023C124aC10DA2Da2759D58bd26858f69B7094
0x950cE204F7f4391Ed72424B7456C6CCfEc7BB05E
USDC 1500
DAI 1500
USDC 1000000000
DAI 1200000000000000000000
0xA2025B15a1757311bfD68cb14eaeFCc237AF5b43,1000000000 // 1,000 USDC
0xA2025B15a1757311bfD68cb14eaeFCc237AF5b43,1000000 // 1 USDC