How Does a Stablecoin Pool’s Formula Differ from the Constant Product Formula?

Stablecoin pools often use a "stableswap" or hybrid formula, which combines the constant product and constant sum formulas. This results in a much flatter curve around the 1:1 peg, allowing for very low slippage on trades near the peg.

However, as the price diverges significantly from the peg, the curve reverts to the constant product model to ensure deep liquidity, though with higher slippage.

Why Are “Stableswaps” or Similar Curves Used for Stablecoin Pools Instead of X Y = K?
How Would This Formula Change for a Liquidity Pool Governed by a Constant Mean or Constant Sum Formula?
How Do Different AMM Models, like Balancer or Curve, Modify the Constant Product Formula?
How Do “Stableswap” AMMs Modify the X Y=k Formula to Reduce Impermanent Loss for Stablecoins?
How Do “Stableswap” AMMs Modify the X · Y = K Formula for Pegged Assets?
How Does the ‘Constant Sum’ Formula Differ from the ‘Constant Product’ Formula in AMMs?
How Does Curve’s “Stableswap Invariant” Formula Achieve Low Slippage for Pegged Assets?
How Does a ‘Hybrid AMM’ (Like Curve’s Stableswap) Combine Features of Constant Product and Constant Sum?

Glossar