About this project

FlashLoanArbitrage is a Node.js command-line bot that the README presents as a DeFi arbitrage tool built around flash loans. Note a mismatch worth flagging to users: the repository name (strategy-visual-builder) and its one-line description (builds and visualizes strategies for testing) suggest a strategy visualisation tool, while the README documents a flash-loan arbitrage bot consisting of a local script, goflash.js, plus a companion smart contract. Nothing in the README evidences any visualisation or strategy-building interface. How it is described as working: the contract takes a flash loan in USDC, converts the user's ETH to USDC, buys ETH at a lower price on one venue and sells at a higher price on another, repays the loan plus fees and gas, converts remaining profit back to USDC-to-ETH, and leaves the remainder as profit. The goflash.js script reads ETH/USDC prices and waits for a spread of 0.9% or more before triggering a trade; the README says it scans roughly every 60 seconds and prints prices with up/down indicators. Flash-loan sources listed in the README: Aave (0.05% fee, 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). Price sources scanned are Chainlink, Uniswap V2, SushiSwap, Curve Finance and Balancer. Usage as documented: download goflash.js and package.json into a folder, run npm install, then node goflash.js. On first launch the interactive CLI either generates a new wallet or imports one by private key, writing it to wallet.json; the menu then lets the user choose a DeFi protocol, set a loan amount in ETH, recreate or import a wallet, start arbitrage, or exit. Dependencies named are ethers v6, inquirer and chalk. Risks and caveats stated by the README itself: the project is shared as-is for educational purposes and used at the owner's risk; trading fees (0.1%), slippage (0.05%) and gas are deducted from results; the 0.9% spread threshold is described as rare in real markets, and the script is said to show a simulated opportunity occasionally for demonstration, so displayed output is not necessarily a real executable trade. Private keys are stored in plain text in wallet.json, which the README advises adding to .gitignore and never committing; a dedicated wallet and small test amounts are recommended. The README provides no audited contract, published test results, or any evidence of profitability.