Skip to main content

What Are the Advantages and Disadvantages of Using a Constant Sum Formula versus a Constant Product Formula in an AMM?

The constant product formula (x y=k) offers continuous liquidity but suffers from high slippage for large trades. The constant sum formula (x+y=k) allows for zero-slippage trades, which is ideal for stablecoins, but it can be easily drained of one asset if the peg breaks.

This makes it unsuitable for volatile assets. Hybrid models, like Curve's StableSwap, combine these formulas to offer low slippage for stable assets while maintaining liquidity for a wider range of prices.

What Are the Advantages and Disadvantages of Using a Proof-of-Stake (PoS) Model for Oracle Node Selection?
How Does the Constant Product Formula (X Y=k) Ensure Liquidity Is Always Available, Regardless of Trade Size?
How Do Automated Market Makers (AMMs) Create the Vulnerability for Sandwich Attacks?
How Does the Constant Product Formula (X Y=k) Work in an AMM?