StableSwap — Efficient mechanism for Stablecoin Liquidity

Author Michael Egorov
Publication date November 10, 2019
Project Curve Finance
Document license Not specified in the cited paper
Official source StableSwap paper (PDF)

StableSwap introduces an automated market maker for assets intended to trade near parity. Michael Egorov’s 2019 paper explains its invariant; later Curve products should be distinguished from that original design.

Original paper Original paper
Directories Ethereum Whitepapers & Research

Why StableSwap Exists

A stablecoin pair needs useful liquidity near its expected exchange rate. A constant-product market maker spreads liquidity across a wider price range. Constant-sum pricing gives a flatter exchange rate, but can exhaust one reserve. StableSwap combines features of both approaches, adjusting as pool balances change. It supports stablecoins and other correlated assets, rather than promising that their prices will remain equal.

The StableSwap Invariant

A × nn × Σxi + D = A × D × nn + Dn+1 / (nn × Πxi)

Here, xi denotes pool balances, n the asset count, A amplification, and D the invariant, equal to the sum of balances at equal-price equilibrium. The equation’s quantities use comparable units.

Amplification and Pricing

A higher A concentrates liquidity more tightly near the expected price. That can accommodate substantial imbalance while swaps remain near parity, but pricing can then deteriorate sharply when the peg fails. A lower A gives a more gradual pricing response. There is no universal A value for all pools; the appropriate setting depends on the assets and implementation.

Liquidity Provider Risks

Low slippage does not mean low risk in every situation. A liquidity pool can accumulate more of a weakening asset as traders sell it into the pool. A persistent depeg can leave liquidity providers with losses relative to holding their original assets. The description of impermanent loss as ‘almost zero’ needs assumptions about continuing price correlation.

Research by Cintra and Holloway examines exposure to stablecoin and liquid-staking-token depegs in StableSwap pools. Pool fees do not guarantee that such losses will be offset.

3Pool and Metapools

Curve’s Ethereum 3Pool contains DAI, USDC, and USDT. UST was associated with a separate Wormhole UST metapool. These pools should not be conflated when describing the 2022 UST collapse. A metapool pairs another asset with an underlying pool’s LP token.

Later Curve Developments

CryptoSwap supports volatile assets by moving its liquidity concentration with recent prices. StableSwap-NG develops the correlated-asset design with features including dynamic fees and built-in oracles. Neither is identical to the 2019 paper.

Curve’s later veCRV governance allows locked CRV to provide voting power, including votes on gauge weights that direct token emissions. This governance layer is separate from the StableSwap invariant.

Related Terms

See Also

Sources

  1. Egorov, Michael (2019). StableSwap — efficient mechanism for Stablecoin liquidity, November 10. Original paper and invariant.
  2. Curve Knowledge Hub. Curve StableSwap Exchange: Overview. Pool structures and correlated-asset scope.
  3. Curve Knowledge Hub. Cryptoswap: In Depth. Amplification tradeoffs and volatile-asset design.
  4. Cintra, Thomas N., and Maxwell P. Holloway (2023). Detecting Depegs: Towards Safer Passive Liquidity Provision on Curve Finance, arXiv:2306.10612. Liquidity-provider depeg exposure.
  5. Curve Finance. Ethereum pool definitions; 3pool, Wormhole UST v2, Frax A parameter changes (2022). Distinct pool compositions and parameters.
  6. Curve Knowledge Hub. Stableswap-NG: Overview. Later implementation features.
  7. Curve Knowledge Hub. Curve DAO Token (CRV). veCRV and gauge voting.

Last updated: 2026-10-28