Skip to main content

MEV protection

One of the main benefits of CoW Protocol is comprehensive MEV protection for every order.

MEV, or maximal extractable value, is a form of price exploitation that affects token swaps and other types of transactions on Ethereum. MEV attacks happen when malicious traders (usually MEV bots) strategically place transactions before and after a user's order, manipulating the price of assets at the expense of the user โ€” this is commonly known as a "sandwich attack". To date, MEV is responsible for over a billion dollars in losses for everyday traders.

MEV attacks happen on most major exchanges. However, CoW Protocol's unique trading model protects users from MEV in three main ways:

  • Uniform Clearing Prices: If the same token pair (such as ETH-USDC) is traded multiple times in the same batch, the assets will clear for the same market prices for each trade in the same direction. This mechanism is called a "uniform directed clearing price" and it makes transaction order irrelevant, so MEV bots cannot re-order trades in order to extract a profit. Uniform directed clearing prices enable the Ethereum DeFi ecosystem to establish consistent prices for identical directed token pairs within the same block, addressing the inconsistency caused by the design of Constant Function Market Makers (CFMMs) like traditional Uniswap liquidity pools.
  • Solver-Based Settlement Optimisation: On CoW Protocol, independent bonded solvers compete to find and submit settlement solutions for batches of user-signed intents. Because users do not submit their swaps directly on-chain, they are not directly exposed to public mempool MEV in the same way as ordinary on-chain swaps. The winning solver must provide at least the price accepted by the userโ€™s signed intent, and bears the risk of sourcing a valid settlement under those constraints.
  • Coincidence of Wants: MEV attacks rely on the dynamics of automated market makers (AMMs) for their price exploitation. When orders are matched peer-to-peer through a CoW, however, they don't tap into on-chain liquidity, and are therefore protected from MEV

Read more about CoW Protocol's unparalleled MEV protection on our blog.