About this project

FlashLoanArbitrage is an automated DeFi arbitrage bot built with Node.js and Solidity smart contracts. The bot scans ETH/USDC prices across five decentralized platforms—Chainlink, Uniswap V2, SushiSwap, Curve Finance, and Balancer—at 60-second intervals, waiting for price discrepancies of 0.9% or more before triggering execution. The arbitrage flow works as follows: the smart contract takes a flash loan in USDC from a selected protocol, converts the user's ETH to USDC beforehand, buys ETH at the lower price on one platform, sells it at the higher price on another, repays the flash loan plus fees and gas, converts remaining USDC profit back to ETH, and deposits the net profit to the user's wallet. Supported flash loan protocols include Aave (up to 10M USDC, 0.05% fee), dYdX (up to 500K USDC, 0.05%), Uniswap V3 (up to 5M USDC, 0.01%), and Balancer (up to 1M USDC, 0.02%). Lower-fee protocols like Uniswap V3 and dYdX are recommended. The bot provides an interactive CLI menu powered by inquirer, with wallet management (create or import via private key stored in wallet.json), protocol selection, configurable loan amounts, and real-time price monitoring with directional change indicators. Dependencies are ethers, inquirer, and chalk. The project is shared as-is for educational purposes. Users are advised to maintain sufficient ETH for gas, never commit wallet.json to version control, and test with small amounts first.