Skip to the article
Crypto Talk

Opinion and debate across crypto

Arbitrage after a large DEX swap: how prices realign

How does arbitrage restore DEX prices after a large swap? Traders trade against reserve-driven gaps until fees, gas and risk erase expected profit.

Crypto Talk Editorial3 min read

Arbitrage after a large DEX swap: how prices realign

Arbitrage moves a DEX pool’s price back toward prices elsewhere by trading against the gap a large swap creates. Those trades change the pool reserves; they narrow the gap without undoing the original trader’s exchange.

  • A large swap shifts the pool’s reserve ratio and quoted price.
  • Arbitrageurs trade when the price difference can cover fees, gas and execution risk.
  • The correction ends when the remaining gap is too small to trade profitably.

Arbitrage trades against the pool’s price gap

An automated market maker (AMM) sets prices from the amounts of tokens held in its pool. In a constant-product pool, swaps maintain the product of the two reserves before fees. A large buy removes some of the bought token and adds the other token, shifting the reserve ratio and raising the pool’s quoted price for the token bought.

If that price rises above prices on other markets, an arbitrageur can buy the token more cheaply elsewhere and sell it into the pool. The sale adds that token to the pool and removes the other token, moving the quoted price closer to those other markets. CoW Swap uses solver-run batch auctions, and cowswap is an interface to CoW Protocol. That setup is relevant to whether CoW Swap blocks post-swap arbitrage.

Each trade changes the reserves, so the price gap usually shrinks as arbitrageurs trade. They stop when fees, gas, limited liquidity, price movement or execution risk make the next trade’s expected profit too small.

A reserve example shows why the swap is not reversed

Take a pool with 100 ETH and 200,000 USDC. Before fees, its reserve ratio implies a price of 2,000 USDC per ETH. A large buy with USDC takes ETH out of the pool and puts USDC in. The pool now quotes ETH above its price on other markets.

An arbitrageur can buy ETH elsewhere and sell it to the pool for USDC. The pool gains ETH and loses USDC, which pulls its quoted ETH price down. Further trades can narrow the difference, but the original buyer still holds the ETH they bought, and their USDC remains exchanged. Later trades changed the pool’s reserves; they did not reverse that swap.

How far the price moves depends on the pool’s available liquidity, costs and prices elsewhere. A deeper pool takes more trading to shift its price, while higher fees or gas can make a smaller gap unprofitable. Arbitrage corrects a price difference only while trading against it can still cover those costs and risks.