About this project

This repository's README documents a project called FlashLoanArbitrage (the repository itself is named defi-position-manager), a Node.js command-line bot for flash-loan arbitrage between DeFi venues. How it is described as working - A smart contract takes a flash loan in USDC, buys ETH where it is cheaper, sells it where it is more expensive, repays the loan plus fees and gas, converts the profit back to ETH, and leaves the remainder to the user. - The local script goflash.js checks ETH/USDC prices on Chainlink (used as the reference oracle), Uniswap V2, SushiSwap, Curve Finance and Balancer, and waits for a spread of at least 0.9% before triggering a trade. - Scans are said to run every 60 seconds, printing a table of each venue's price with up/down/unchanged indicators. Flash-loan venues and stated limits - 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) - Balancer (0.02%, up to 1,000,000 USDC) These numbers are the README's own claims and are not verified here. Running it The README says to install dependencies with npm install and start with node goflash.js. On first run an interactive menu (built with inquirer) offers to create a new wallet or import one by private key; the key is written to wallet.json in the same folder. The menu then lets the user pick a lending protocol, set a loan amount in ETH (from 10 ETH up to the protocol maximum), regenerate or re-import a wallet, start arbitrage, or exit. Requirements and risks noted in the README - It warns that a wallet balance below 0.1 ETH may not cover gas for loans above 10 ETH, and lists trading fees (0.1%), slippage (0.05%) and gas as costs deducted from profit. - It also states that a 0.9% price difference is rare in real markets and that the script occasionally shows a simulated opportunity for demonstration, so consistent profitability should not be assumed. - Private keys are stored in plaintext in wallet.json; the README advises keeping that file out of Git, backing keys up offline, and using a dedicated wallet. Anyone running this should treat the key handling as a serious security concern. - The documented project structure lists only goflash.js, package.json, wallet.json and README.md. No smart contract source appears in that listing, and no contract address, chain or deployment details are given. - Declared dependencies: ethers ^6.11.1, inquirer ^8.2.6, chalk ^4.1.2. The README presents the project as shared as-is for educational purposes, used at the user's own risk.