Arbitrage
Arbitrage trades related markets when their executable prices differ enough to cover fees, gas, latency, financing, and execution risk.
Category: TradingOpposed arrows category cue
System record
Start with the economic purpose, participants, resources, and entitlements before studying implementation detail.
Why it exists
Arbitrage links otherwise separate venues and helps move quoted prices toward one another while rewarding the trader who bears execution costs and risk.
Traditional-finance analogy
Cross-venue arbitrage is the closest comparison recorded for this concept.
Where the analogy stops
- Blockchain arbitrage must account for transaction ordering, atomic composition, reverts, gas auctions, block-building, and chain finality.
- The activity can correct stale AMM prices while transferring value from pool inventory, so price alignment is not costless to liquidity providers.
Main actors
- ActorArbitrageur or searcher
- ActorLiquidity provider or maker
- ActorTrader on the reference venue
- ActorValidator, sequencer, or block builder
- ActorLender when flash liquidity or leverage is used
Assets and claims
Assets — controlled or transformed resources
Assets are resources the mechanism moves, holds, values, or transforms.
- AssetAssets bought and sold across venues
- AssetGas asset and temporary financing
Claims — entitlements and corresponding dependencies
Claims are rights to value, repayment, redemption, control, or another party's performance; each depends on an obligation or system that must honor it.
- ClaimAtomic loan obligation or unsettled venue claim when applicable
Arbitrage trades a price difference only when the executable proceeds can exceed every acquisition, trading, financing, gas, latency, and failure cost.
Why it exists
Section titled “Why it exists”Markets form prices separately. Arbitrageurs connect them by buying where an asset is cheaper and selling where it is more expensive. Their trades help move quotes toward one another, but alignment is not instantaneous or free.
Traditional-finance analogy
Section titled “Traditional-finance analogy”Cross-venue arbitrage is the direct analogy. Blockchain execution adds public pending transactions, atomic composition, flash liquidity, reverts, gas auctions, block-building competition, chain finality, and sometimes bridges. Those mechanics can reduce one risk while creating another.
Step-by-step AMM correction loop
Section titled “Step-by-step AMM correction loop”- An external market price changes while the AMM still quotes from its existing reserve state.
- An arbitrageur compares executable prices and every trading, gas, financing, latency, and failure cost.
- When the difference remains positive, the arbitrageur trades against the AMM and the offsetting venue.
- The pool’s inventory and marginal price move as the AMM leg settles.
- The executable difference shrinks until another trade is unprofitable or unavailable.
The pool does not receive the external price as information. It changes because traders move its state. The LP side of the correction is an inventory transfer, which can create adverse-selection cost even when the pool also earns a fee.
Actors, assets, and claims
Section titled “Actors, assets, and claims”The arbitrageur trades assets on at least two related venues. LPs or makers take the other side. Validators, sequencers, and block builders affect ordering. Lenders can supply temporary capital. Atomic flash borrowing creates an obligation that must be repaid before the transaction ends; non-atomic strategies leave inventory and settlement exposure between legs.
Profit and state changes
Section titled “Profit and state changes”netProfit= saleProceeds- purchaseCost- tradingFees- gasCost- financingCost- executionLossesAll terms must use one valuation unit and a consistent time. A quoted spread is not profit. Token transfer behavior, decimals, reverted attempts, hedging, bridge fees, and inventory left after partial execution also belong in the ledger.
| Outcome | Arbitrageur | Venues and LPs |
|---|---|---|
| Atomic success | Ends with repaid financing and positive residual | Prices and inventories move; fees accrue |
| Atomic failure | State reverts; gas is lost | Intended venue state remains |
| Non-atomic partial fill | Holds unplanned inventory or obligation | One venue moved while another did not |
| Competition | Profit shrinks or transaction loses inclusion | Block builder may capture ordering payment |
Four-flow view
Section titled “Four-flow view”Capital flow moves purchase assets, sale proceeds, fees, gas, financing, and any residual inventory across the strategy’s legs. Claim flow records temporary borrowing, unsettled orders, bridge or venue receivables, and any obligation left by partial execution. Return flow is the net executable price difference transferred from counterparties or pool inventory after every cost. Risk flow reaches the arbitrageur through failed, delayed, reordered, or adverse legs and can reach LPs, makers, lenders, or connected protocols through the trades that do settle.
Return source and loss allocation
Section titled “Return source and loss allocation”Arbitrage profit comes from counterparties executing at different prices. In an AMM correction, part can be transferred from pool inventory relative to a better-informed or continuously rebalanced benchmark. Fees return some value to LPs. A losing arbitrageur absorbs gas, adverse movement, and failed-leg costs; lenders are repaid only under their contract’s settlement rules.
Engineer or auditor lens
Section titled “Engineer or auditor lens”Test atomic repayment, profit checks after every fee, price and decimal normalization, callbacks, reentrancy, allowance scope, route identity, minimum outputs, deadlines, partial fills, reorgs, stale data, and failure on each leg. Do not encode “arbitrage will fix it” as a synchronous invariant: capital, inclusion, external liquidity, and profit must all be available.
The research paper Automated Market Making and Loss-Versus-Rebalancing formalizes stale-price adverse selection from the LP perspective. The paper’s model is not identical to every realized pool outcome and LVR is not a synonym for the simpler impermanent-loss benchmark.
Common misunderstandings
Section titled “Common misunderstandings”- “A price difference is risk-free profit.” Only executable, cost-adjusted, successfully settled differences count.
- “Arbitrage gives an AMM an oracle.” Trades update state; correction can be delayed, incomplete, or manipulated.
- “Price alignment benefits everyone equally.” It improves consistency while allocating fees, inventory changes, and adverse-selection costs across actors.
Next examine the LP benchmark in impermanent loss.
Machine-readable model
Key equations
Canonical expressions come from the structured concept record. KaTeX renders the notation, while the plain-text expression and variable table keep its meaning and units inspectable without JavaScript. Read the narrative above for the model's domain, assumptions, and rounding rules.
Equation 1 Plain-text equation:
netProfit = saleProceeds - purchaseCost - tradingFees - gasCost - financingCost - lossesVariables and units for equation 1 Symbol Meaning Unit netProfitNet Profit selected valuation unit (for example, USD) saleProceedsSale Proceeds selected valuation unit (for example, USD) purchaseCostPurchase Cost selected valuation unit (for example, USD) tradingFeesTrading Fees selected valuation unit (for example, USD) gasCostGas Cost selected valuation unit (for example, USD) financingCostFinancing Cost selected valuation unit (for example, USD) lossesLosses selected valuation unit (for example, USD)
Assurance contract
Security properties
These structured statements define desired behavior. Their stable IDs can bind tests, invariants, specifications, audit findings, or proof results without turning descriptive review advice into an assurance claim.
Desired · not evaluated: No test, audit, or proof result is implied until scoped evidence is linked to this property.
Atomic strategies revert without leaving an unpaid loan or unintended partial position
Profit checks include every asset flow, fee, gas payment, repayment, and rounding effect
Non-atomic strategies bound inventory, latency, counterparty, and settlement exposure explicitly
Arbitrage-dependent protocols do not assume correction is immediate, free, or always available
Knowledge check
Quiz
Answer in your own words, then open the model answer.
What problem does Arbitrage exist to address?
Model answer
Arbitrage links otherwise separate venues and helps move quoted prices toward one another while rewarding the trader who bears execution costs and risk.