Skip to main content

What Is the Primary Difference in How Slippage Is Calculated on an AMM versus a CLOB?

On a CLOB (Central Limit Order Book), slippage is calculated as the difference between the expected execution price (e.g. the best bid/ask) and the actual executed price, based on consuming the discrete price levels in the order book. On an AMM, slippage is calculated based on the change in the ratio of assets in the liquidity pool, as determined by the pricing formula (e.g.

$x y=k$). The AMM's slippage is a continuous function of the trade size and pool depth.

What Is the Difference between an Order Book DEX and an AMM-based DEX?
What Is an Automated Market Maker (AMM) and How Does It Differ from a Traditional Order Book?
How Do Automated Market Makers (AMMs) in DeFi Replace the Traditional Order Book?
What Is the Primary Function of an Automated Market Maker (AMM) in Decentralized Finance (DeFi)?