This project demonstrates a basic flashloan arbitrage capabilities using Aave. It consists of FlashLoanArbitrage contract which gets the flashloan and executes the arbitrage agains a dummy DEX contract
Before running the project, you need to set up your environment variables:
-
Copy the
.env.examplefile to.env:cp .env.example .env
-
Fill in the required environment variables in
.env:INFURA_ENDPOINT: Your Infura endpoint URL for Sepolia network (e.g.,https://sepolia.infura.io/v3/YOUR_PROJECT_ID)PRIVATE_KEY: Your wallet's private key for deploying contracts (without 0x prefix)
.env file with real private keys to version control!
Try running some of the following tasks:
npm install
npm run deploy-contracts-testnetSepolia AAVE USDC=0xda9d4f9b69ac6C22e444eD9aF0CfC043b7a7f53f Sepolia AAVE DAI=0x68194a729C2450ad26072b3D33ADaCbcef39D574
Sepolia AAVE Faucet=https://staging.aave.com/faucet/