About this project

FlashLoanArbitrage is a JavaScript command-line bot that scans ETH/USDC prices across several DeFi venues and, when a spread threshold is met, has a smart contract attempt a flash-loan arbitrage cycle. As documented, the repository ships a main script goflash.js plus package.json, with dependencies ethers ^6, inquirer ^8 and chalk ^4 installed via npm; the CLI presents an arrow-key menu for protocol, loan size and start/stop actions. Price monitoring: the script queries Chainlink, Uniswap V2, SushiSwap, Curve Finance and Balancer (the five sources named in the README) at roughly 60-second intervals, printing each price with up/down/flat indicators and the current maximum difference. Arbitrage is only triggered when the spread reaches the stated 0.9% threshold, which the author describes as a loss-avoidance margin. Flash-loan sources: the menu offers Aave, dYdX, Uniswap V3 and Balancer, with documented fee rates (0.05%, 0.05%, 0.01%, 0.02%) and per-protocol borrowing caps. Loan size is selectable, and the README states that loans above 10 ETH require a wallet balance of at least 0.1 ETH for gas. Wallet handling and risk: on first launch the CLI asks whether to create a new wallet or import one by private key, then writes the key to wallet.json in the script folder. The README advises keeping that file out of Git, backing up the key offline, using a dedicated wallet and starting with small amounts. This is the main risk surface to weigh: running the bot means placing a private key on disk and authorising contract interactions with real funds. Limitations worth verifying first: the README itself notes that 0.9% cross-venue differences are rare in live markets and that the script occasionally shows a simulated opportunity for demonstration. It also describes the project as shared "as-is for educational purposes," with no tests, audit records or license beyond that statement. The smart contract referenced in the description is not listed among the project files documented in the README, so contract address, verified source and target chain would need independent confirmation. Any profit figures are claims by the author and are not independently verified here.