Ethereum Flash Loan Arbitrage Bot

Project Description

I want a production-ready flash-loan arbitrage bot that operates on Ethereum and combines Aave flash loans with price opportunities across Uniswap and Sushiswap. The core workflow is:

• Pull live on-chain and off-chain prices, detect profitable spreads in milliseconds.
• Instantly launch an Aave flash loan, route the borrowed amount through Uniswap and Sushiswap, and repay the loan plus fees within the same block.
• Optimise gas by simulating each bundle and selecting the lowest-cost route before submission.

Key requirements
• Real-time price monitoring with sub-second latency (I’m happy to run a dedicated node or use WebSocket endpoints if that helps).
• Fully automated trade execution from detection through settlement, no manual clicks.
• Dynamic transaction-fee optimisation—use gas price oracles and settle only when the net profit after gas is positive.
• Written in Solidity for the on-chain contract and either Hardhat or Foundry for testing; TypeScript/ethers.js for the off-chain listener is preferred.
• Clear README plus hard-fork mainnet-fork tests showing at least one successful arbitrage cycle.

Acceptance criteria
1. Deployable smart contract that requests and repays Aave flash loans in the same transaction.
2. Off-chain script/service that listens for target spreads, runs simulation, and submits bundled tx.
3. Hardhat (or Foundry) test suite demonstrating profit after gas in a mainnet-fork.
4. Clean, commented code and concise setup instructions that let me reproduce a demo on my machine.

Once delivered, I’ll run the bot on my own keys and infrastructure, so environment variables for private keys, RPCs, and Aave/DEX addresses must be clearly documented. Show More

Attachments

Freelancers Bidding (0)

  • This project has no proposals yet.
    Be the first to place a bid on this project!