Uniswap vs CoW Protocol

Updated

How they differ

For a large swap, Uniswap's docs describe execution against pools of committed liquidity, where price impact depends on how much liquidity sits at the relevant prices, plus an optional UniswapX route where fillers compete in an auction. CoW Protocol's docs describe signed intents collected into batch auctions, where solvers compete, orders in a batch settle at uniform clearing prices, and TWAP orders can split a large trade over time. Both docs make MEV claims, and each page's own caveats are quoted in the table.

Side by side

CriterionUniswapCoW Protocol
How a swap executesThe swapper trades against a pool of committed liquidity, not against discrete orders matched in order. Its docs say interfaces and integrations add routing on top of the core protocol.Users sign intents that are collected off-chain and combined into a batch auction. Solvers propose settlements, and the winning one is executed on-chain on the users' behalf.
Routing across liquidityThe Uniswap API can consider V2, V3, V4 pools and UniswapX. Its docs describe a routing preference named for price and another named for speed, and say the fastest preference does not consider private liquidity available through UniswapX.Solvers check on-chain liquidity and may split a trade across several sources. Its price improvement page also says some solvers can reach private market maker liquidity.
Price impact on large tradesIts swaps page says impact is lower where more liquidity sits at the relevant prices and higher where less is available, and that interfaces estimate impact and warn when it is unusually high.Its TWAP page says splitting a large order into smaller pieces executed over time spreads liquidity needs and reduces price impact. Its price improvement page says surplus is not assured.
MEV protectionThe CoW page does not quantify the protection or call it absolute.The swaps page does not mention MEV. The UniswapX overview lists protection against MEV among its claimed benefits and does not explain how it works. The Uniswap API routing page makes no MEV protection claims.Its MEV protection page says uniform clearing prices make transaction order irrelevant for same-pair, same-direction trades in a batch, and that users are not directly exposed to public mempool MEV in the same way. Peer-to-peer matches are described as protected, with no equivalent claim for orders routed through on-chain liquidity.
Slippage and price guardsIntegrations add a minimum output for exact-input swaps, a maximum input for exact-output swaps and a deadline. A slippage tolerance sets how far the price may move beyond price impact before the swap fails.The settlement contract checks that executed prices are equal to or better than each order's limit price, and the winning solver must meet the price the user accepted.
FeesEvery swap pays a fee to liquidity providers. Fees are set by pool and protocol version, and v4 supports dynamic fees through hooks. A protocol fee share can also apply when governance enables it.Its fees page lists protocol fee types, namely a surplus fee, a quote improvement fee and a volume fee, and says users pay through the trade itself. Partner fees can apply for integrations. The page states the rates, which change by governance and are left out here.
Who settles the trade and what limits themOn a pool swap, the swapper's own transaction calls the contracts. On UniswapX, fillers settle signed orders, anyone can act as a filler, and the final price depends on when the first successful filler settles within the auction timeline.Only allow-listed solvers can call settle, and the settlement page says a solver must post a bond. Solvers can make on-chain interactions but cannot directly access user funds, according to the settlement docs.
Gas and failed tradesThe UniswapX overview lists gas-free swapping and no cost for failed transactions as claimed benefits, and says it does not explain who covers gas. Quote responses from the Uniswap API include gas estimates.Its order flow page says users do not need to set the right gas price because solvers handle that. The page does not cover failed orders or expiry.
Limits the docs stateUniswapX is available only on selected chains. Solver participation varies, so small trades may get only AMM routes, and UniswapX orders do not support wrapping or unwrapping.Fast-path orders skip the auction, which trades some of the auction's benefits for speed. TWAP orders require a Safe wallet with an upgraded fallback handler and have a minimum trade size.

The two listings

  • Uniswap: A decentralized exchange protocol that uses liquidity pools instead of an order book.
  • CoW Protocol: A trading protocol that settles intents through fair combinatorial batch auctions, with CoW Swap as its app.

Questions

How does a large swap on Uniswap differ from one on CoW Protocol?
On Uniswap's pools the swap runs against committed liquidity and its docs link price impact to how much liquidity sits at the relevant prices. CoW Protocol batches signed intents and lets solvers compete to settle them, with uniform clearing prices inside a batch.
Does each protocol claim to protect against MEV?
Both docs make MEV claims, but in different places. Uniswap's UniswapX overview lists it as a claimed benefit without explaining how. CoW Protocol's MEV protection page describes uniform clearing prices, solver-based settlement and coincidence of wants, with stated limits.
Can a large order be split over time?
CoW Protocol's TWAP orders break a large order into smaller limit orders at fixed intervals, according to its docs. The Uniswap pages opened for this comparison describe routing and UniswapX auctions and do not describe an order type that does this.
Who pays the fees?
On Uniswap the swap fee goes to liquidity providers, and a protocol fee share can apply. On CoW Protocol, users pay protocol fees through the trade itself, according to its fees page.

Sources

  1. Understanding Swaps on Uniswap, Uniswap Developersaccessed
  2. Fees, Uniswap Developersaccessed
  3. Swap Routing in the Uniswap API, Uniswap Developersaccessed
  4. AMM vs UniswapX Routing, Uniswap Developersaccessed
  5. UniswapX Overview, Uniswap Developersaccessed
  6. CoW Docs homeaccessed
  7. Fair combinatorial batch auction, CoW Docsaccessed
  8. MEV protection, CoW Docsaccessed
  9. Price improvement, CoW Docsaccessed
  10. TWAP orders, CoW Docsaccessed
  11. Flow of an order, CoW Docsaccessed
  12. Fees, CoW Docsaccessed
  13. GPv2Settlement, CoW Docsaccessed