Flashloan Arbitrage Bot
Multi-Chain Flashloan Arbitrage with MEV Protection
A modern multi-chain flashloan arbitrage system featuring Balancer zero-fee flashloans, MEV protection, and a real-time monitoring dashboard.
Role
Lead Developer
Duration
2023 - 2024
Team
Solo Project
Tech Stack
SolidityFoundryTypeScriptViemReactBalancer V2UniswapCurveFlashbotsWebSocket
Impact
Results & Metrics
4
Supported Chains
Ethereum, Arbitrum, Base, Optimism
0%
Flashloan Fee
Balancer V2 zero-fee flashloans
2-tier
Safety Controls
Per-trade and daily loss limits
Problem
Challenges Faced
MEV Risk
Arbitrage trades are vulnerable to frontrunning and sandwich attacks on public mempools.
Multi-Chain Complexity
Supporting multiple L2s required chain-specific routing and configuration management.
Low-Latency Detection
Opportunities expire within seconds, demanding real-time price monitoring and execution.
Solution
How I Solved Them
Private Transaction Routing
Integrated Flashbots Protect and private mempools to shield trades from MEV.
Graph-Based Arb Detection
Used Bellman-Ford pathfinding to identify profitable cycles across multiple DEXes.
Circuit Breakers
Added per-trade and daily loss limits with automatic pause controls.
Capabilities
Key Features
Balancer V2 flashloans
Multi-DEX routing (Uni V2/V3, Curve)
MEV protection with Flashbots
Real-time WebSocket monitoring
Bellman-Ford arbitrage detection
Trade simulation before execution
Configurable profit thresholds
Live dashboard metrics