Arbitrage in DeFi
Arbitrage in DeFi exploits price differences for the same asset across decentralized exchanges, liquidity pools, or lending platforms. An arbitrageur might buy ETH at $2,000 on one venue and sell at $2,010 on another, capturing the spread minus gas fees. Unlike traditional markets with central order books and tight bid-ask spreads, DeFi fragmentation creates persistent mispricings, attracting sophisticated traders and bots.
Statistical arbitrage across AMMs
Automated Market Makers (AMMs) like Uniswap use liquidity pools with constant-product formulas: price adjusts based on token ratio. During volatile periods, AMM prices lag order books, creating arbitrage. If Uniswap quotes ETH at $2,000 but Coinbase spot trades at $2,005, an arbitrageur buys ETH on Uniswap and sells on Coinbase, pocketing $5 per coin minus gas fees. High gas costs on Ethereum make this profitable only for large trades; lower-fee chains (Polygon, Arbitrum) enable smaller margins.
Flash loans and atomic arbitrage
Flash loans enable uncollateralized borrowing if repaid within the same transaction. An arbitrageur borrows 1,000 ETH via Aave, buys low on one DEX, sells high on another, repays the loan, and keeps profit—all in one atomic transaction with no net capital requirement. This removes the need to hold capital overnight, amplifying arbitrage activity. If profit margins exceed flash loan interest (typically 0.05% of borrowed amount), the trade executes. Flash loans have enabled both legitimate arbitrage and exploits—attackers borrow massive sums to manipulate prices, extract value, then repay.
Cross-protocol arbitrage and bridge risk
Assets often exist on multiple chains: USDC on Ethereum, Solana, Polygon. If USDC trades at $0.995 on Ethereum and $1.01 on Solana, an arbitrageur can bridge USDC, execute the trade, and profit if bridge fees and slippage stay below the spread. Bridge protocols carry smart contract risk; if a bridge is hacked, bridged assets become worthless. This risk compounds returns, pushing arbitrage spreads tighter but adding execution hazards.
MEV and transaction ordering
Miners and validators extract Maximal Extractable Value (MEV) by front-running transactions. An arbitrageur submits a profitable trade; a validator inserts their own trade first (front-running) and a losing trade after (sandwich attack), capturing the arbitrage profit. Sophisticated DeFi traders use private mempools and encrypted order relays to hide trades and reduce MEV theft, but this comes at cost.
Funding rate and perpetual futures arbitrage
On decentralized perpetuals (dYdX, Hyperliquid), the funding rate is the interest paid between long and short positions. If perpetuals trade rich (higher than spot), longs pay shorts via funding. An arbitrageur buys spot, short perps, and earns the funding rate spread minus costs—a carry trade variant. Liquidations on the short leg add risk: if spot crashes and perps rally, the short position may liquidate before the hedge rebalances.
Sandwich attacks and vulnerability
Arbitrageurs submit profitable transactions; miners can observe pending transactions, include their own trade ahead (front-running), and another trade behind (back-running), siphoning profit. A user executing a large swap on Uniswap observes impact costs; a bot can front-run, intensifying the user’s slippage, then back-run to exit profitably. Defense mechanisms include private order flow, order routers, and MEV-resistant protocols.
Arbitrage bot sophistication and infrastructure
Professional arbitrage requires high-speed execution, latency optimization, and capital efficiency. Bots monitor dozens of venues simultaneously, calculate profitable paths instantly, and execute. Infrastructure costs—dedicated hardware, direct RPC nodes, MEV protection—create barriers. Smaller traders face competition from well-capitalized bots with millisecond latency advantages; the market has structurally compressed bid-ask spreads, reducing retail arbitrage profits.
Closely related
- Arbitrage Pricing Theory — Theoretical framework
- Decentralized Exchange — Venue for DeFi arbitrage
- Flash Loan — Uncollateralized borrowing mechanism
- Liquidity Pool — AMM source of mispricings
Wider context
- Automated Market Maker — DeFi market structure
- MEV — Extraction risk
- Slippage — Execution cost
- Statistical Arbitrage — Quantitative approach