About this project

FlashLoanArbitrage is a Node.js command-line bot that polls ETH/USDC prices across several DeFi sources and, when it sees a spread of at least 0.9%, is described as triggering an arbitrage trade through a separate smart contract funded by a flash loan. The README frames it as an educational, use-at-your-own-risk side project rather than a production trading system. Claimed workflow: the contract takes a flash loan in USDC, buys ETH on the cheaper venue, sells it on the more expensive one, repays the loan plus fees and gas, then converts whatever profit remains back into ETH to the user's wallet. The local script is said to scan prices every 60 seconds and print them with up/down indicators, along with the current maximum cross-platform spread. Named data sources: Chainlink as the base oracle, plus Uniswap V2, SushiSwap, Curve Finance and Balancer. Flash-loan providers are listed with stated fees and size limits: Aave (0.05%, up to 10,000,000 USDC), dYdX (0.05%, up to 500,000 USDC), Uniswap V3 (0.01%, up to 5,000,000 USDC) and Balancer (0.02%, up to 1,000,000 USDC). Running it: place goflash.js and package.json in a folder, run npm install, then node goflash.js. Dependencies are ethers ^6.11.1, inquirer ^8.2.6 and chalk ^4.1.2. On first launch an interactive prompt offers to create a new wallet or import an existing private key; the key is written to wallet.json in the same folder. The menu that follows offers protocol selection, loan amount in ETH (from 10 ETH up to the protocol cap), wallet recreation or import, start arbitrage, and exit. The README advises anyone holding less than roughly 0.1 ETH to avoid loans above 10 ETH because gas may not be covered, and notes loans are taken in USDC while the wallet balance is used only for gas. Caveats worth weighing before running anything: the README states that 0.9% spreads are rare in real markets and that the script may occasionally show a simulated opportunity for demonstration, so displayed opportunities should not be read as live profit. Trades are said to cost a 0.1% trading fee, 0.05% slippage and gas. The private-key model (plaintext wallet.json in the project folder) makes a dedicated, low-balance wallet the sensible choice; the README itself warns never to commit or share that file. No benchmarks, audits or performance figures are given, and the documented project structure lists only the script, package files and README, so the contract source or a verified contract address is not documented here.