DeFi Intel

StableSwap — Efficient Mechanism for Stablecoin Liquidity

2,505 words12 min readBy DeFi Intel Research Desk

Executive summary

Egorov's six-page StableSwap paper introduces a hybrid bonding-curve invariant that interpolates between a constant-sum (perfectly flat) and constant-product (Uniswap-style) curve via an amplification parameter A. The result is an AMM optimised for assets that should trade at parity — stablecoins, liquid-staking derivatives, pegged-asset pairs — that delivers orders-of-magnitude better slippage than Uniswap v2 in the near-peg region while still gracefully handling depeg events through the constant-product tail. The paper is mathematically clean, surprisingly compact, and decisively right for its narrow problem. DI's assessment: StableSwap is the most successful single-purpose AMM design in DeFi history. It defined an entire venue category (stableswap pools), provided the substrate for Curve's multi-billion-dollar TVL through five years of market regimes, and is now the standard primitive for pegged-asset liquidity on every chain. Its limitations are limitations of scope rather than design — StableSwap deliberately does not address heterogeneous-asset trading, and Curve V2's later Cryptoswap design extended Egorov's curve framework to handle that case.

Background and motivation

In late 2019 Uniswap v1 had been operational for about a year, and constant-product AMMs had become the default DEX primitive. The constant-product invariant (x*y=k) handled volatile asset pairs adequately but performed poorly for stablecoin trading. A USDC/DAI Uniswap v1 pool of $10M nominal liquidity offered tradeable depth of approximately $50k before slippage exceeded 50 basis points — far worse than centralised stablecoin venues and worse than the implicit cost of using a fiat off-ramp. The economic question was clear: stablecoin trading should look more like a flat exchange rate than a price-discovery curve, because the assets are designed to be at parity, but no AMM design at the time delivered this. The mathematical question was how to construct a bonding curve that behaves linearly near the peg (so 1 USDC always trades for very close to 1 DAI) while still being a valid AMM (single-valued, no negative-balance regions, no infinite-slippage points off-peg). Egorov's contribution is the recognition that a continuous interpolation between two known invariants — constant-sum (x+y=k, perfectly flat) and constant-product (x*y=k, standard AMM) — could deliver the desired behaviour. The key insight is that constant-sum is unstable (it breaks down at zero-balance points, allowing liquidity to be drained at peg), but a dampened constant-sum that transitions to constant-product as the pool moves off-peg is both stable and capital-efficient. The amplification parameter A controls how aggressively the curve approximates constant-sum near the peg; high A gives near-flat slippage at peg with sharp degradation off-peg, low A gives gentler slippage at peg with smoother off-peg behaviour. The motivating problem was specifically Curve's first pool (USDC/USDT/DAI/sUSD), which needed to offer institutional-grade stablecoin swaps to attract serious volume away from CEXs and OTC desks.

Core technical contributions

The paper's central contribution is the StableSwap invariant: A * n^n * sum(x_i) + product_term = A * n^n * D + (D^(n+1)) / (n^n * product(x_i)), where D is the pool's nominal liquidity invariant, n is the number of assets, x_i is each asset's balance, and A is the amplification parameter. This is a single equation that captures both constant-sum behaviour (when prices are at peg, the invariant is dominated by the linear sum term) and constant-product behaviour (when prices diverge from peg, the product term dominates). The mathematical work in the paper is establishing that this invariant has the desired properties: it is single-valued in D given balances, single-valued in x_i given D and other balances, monotonic, and bounded. The paper provides Newton's-method approximations for solving the invariant on-chain, which is non-trivial — the invariant is not analytically solvable for D in closed form for n > 2 — and shows that the iterations converge quickly enough to be gas-bounded. A second contribution is the n-asset generalisation. Constant-product AMMs are typically presented as two-asset, and extending to three or four assets requires non-trivial design choices (Balancer's weighted geometric mean is one approach). StableSwap natively supports n assets in a single pool by extending the sum and product terms, which is operationally important: Curve's flagship pools have always been 3-asset (3pool: USDC/USDT/DAI) or 4-asset (sUSD pool, frax pool variants), and the multi-asset support means LPs can deposit any combination and arbitrageurs can rebalance across all pairs simultaneously. A third contribution is the virtual-price LP accounting model. LP shares track the pool's notional D rather than a per-asset balance, which means LPs hold a synthetic basket whose value is the weighted average of the constituent stables. The virtual price increases monotonically as fees accrue (modulo IL), which provides a clean yield-tracking metric.

Methodology and rigor

The paper is short (six pages) and mathematically precise but methodologically thin in some respects. The mathematical analysis of the invariant — its existence, uniqueness, monotonicity — is correct and rigorous, with appropriate calculus and convergence arguments. The Newton's-method analysis is similarly correct. Where the paper is thin is in empirical and economic analysis. There is no published empirical comparison of StableSwap slippage against Uniswap v2 across realistic trade-size distributions; subsequent third-party analyses have shown the slippage advantage to be approximately 100-1000x in the near-peg region for typical pool sizes, but this analysis is downstream of the paper rather than part of it. There is no economic analysis of LP returns: the relationship between fee revenue, IL during depeg events, and CRV emissions is left for subsequent papers and tokenomics documentation. The paper does not analyse the failure mode that became famous in 2022-2023: when one of the constituent stables depegs (UST, sUSD episodes), StableSwap pools rebalance to be heavily-weighted in the depegged asset, transferring losses to LPs. This is the LVR-equivalent for stableswap pools, and the paper does not address it. The amplification-parameter selection is also under-analysed: how to choose A for a given pool is presented as a design choice with intuition rather than a quantitative methodology, and Curve has historically used A values in the 100-2000 range chosen by governance vote rather than by formal optimisation. Despite these gaps, the paper's core mathematical contribution is sufficient to support the protocol that follows; the gaps are second-order analyses that subsequent literature has filled.

Strengths

StableSwap's strengths begin with the elegance of its mathematical form. The invariant is a single equation that captures the desired economic behaviour, and its solvability via Newton's method makes it tractable on-chain. The interpolation between constant-sum and constant-product is conceptually clean: it is the right way to think about pegged-asset AMMs, and the formulation is general enough to extend (Curve V2's Cryptoswap, later StableSwap-NG, and various derivative designs all build on the same framework). The capital-efficiency improvement over constant-product for stablecoin pairs is large enough to be commercially decisive: stablecoin LP yields on Curve have consistently beaten Uniswap v2 yields for the same notional capital, and stablecoin trading volume has migrated to Curve and its derivatives at near-totality. The n-asset generalisation is operationally important: 3pool (USDC/USDT/DAI) became the most-traded pool in DeFi history for several years, and the multi-asset structure made Curve a natural integration point for stablecoin-issuing protocols. The pool-factory pattern (formalised in subsequent Curve documents) enabled permissionless deployment of new stableswap pools, which let liquid-staking derivatives (stETH/ETH), pegged BTC tokens (renBTC/wBTC/sBTC), and other pegged-asset pairs all use the StableSwap primitive. The paper's brevity is a strength: six pages is the right length for a single-mechanism contribution, and the compactness has made the paper unusually readable for a technical AMM design. Finally, the paper's emphasis on near-peg performance over off-peg behaviour was the right tradeoff for the use case. Stablecoin trades happen near peg in 99%+ of cases, and optimising aggressively for the common case while accepting graceful degradation in the rare case is good engineering.

Weaknesses and limitations

The paper's central limitation is that it does not address the depeg-LP-loss problem. When one constituent of a StableSwap pool depegs (loses parity), the AMM's rebalancing dynamic causes the pool to absorb a disproportionate share of the depegged asset, and LPs end up holding a basket weighted toward the broken asset. This is mechanically equivalent to constant-product IL but worse in expected value because StableSwap pools are intentionally over-weighted in the at-peg region — the very design that makes them efficient near peg makes them dangerous when peg breaks. This dynamic was responsible for several major LP loss events: UST/3CRV pool draining during the Terra collapse (May 2022), sUSD pool damage during multiple Synthetix events, and various smaller depegs through 2023-2024. The paper does not analyse this risk, and Curve's user-facing materials have only recently begun to communicate it clearly. Second, the amplification-parameter selection problem is unresolved: there is no formal methodology for choosing A, and governance-driven A changes have historically been a source of pool instability. Third, the paper does not engage cross-pool arbitrage and aggregate liquidity dynamics: when a stable depegs in one pool, the cross-pool rebalancing flow can damage adjacent pools that share constituent assets, which is a system-level risk that Curve has experienced in practice but has not formally modelled. Fourth, the paper does not address the gas-cost asymmetry between StableSwap (Newton's-method-iterating, gas-expensive) and constant-product (closed-form, gas-cheap), which has affected Curve's L2 deployments and competitive positioning against simpler AMMs on gas-sensitive chains.

Subsequent influence

StableSwap is the most-imitated stablecoin AMM design in DeFi history. In the years following Curve's launch, conceptual descendants appeared on every major chain: Saddle (Ethereum), Ellipsis (BSC), Solidly variants (Fantom, Optimism, Base), Velodrome and Aerodrome, Wombat Exchange, and dozens of smaller imitators. The pattern of using a hybrid bonding curve for pegged-asset pairs has become the default; no major chain in 2026 lacks at least one StableSwap-descendant venue. Within Curve itself, the paper seeded a multi-protocol ecosystem: veCRV vote-locking introduced governance-directed liquidity bribes (the 'Curve Wars'), Convex Finance built a meta-protocol on top of veCRV, and the gauge-weight bribe markets (Votium, Hidden Hand) developed into a multi-billion-dollar incentive layer. Outside DEX design, the paper influenced stablecoin-issuance and pegged-asset protocol design: Frax's frxETH, Lido's stETH, Ethena's USDe, and many other pegged-asset issuers explicitly designed their secondary-market structure around StableSwap pool integration. Academically, the StableSwap paper has been cited in dozens of CFMM-analysis papers, including Angeris-Chitra on AMM theory and the LVR/Loss-Versus-Rebalancing literature. The paper's mathematical framework — the hybrid invariant approach — has been extended to non-stable assets (Curve V2's Cryptoswap), to leverage products (Curve's crvUSD design), and to rebalancing primitives (various aggregator designs). The paper's commercial influence is even larger: stablecoin trading volume on DeFi has migrated to StableSwap-descendant venues at near-totality, and the venue category did not exist before this paper.

How it holds up in 2026

Six and a half years post-publication, StableSwap is both the dominant pegged-asset AMM and a foundational component of the broader DeFi stack. By April 2026, StableSwap pools (Curve's own plus its descendants) account for the majority of stablecoin and pegged-asset trading volume on-chain. The mathematical primitive has scaled across every major chain and remains operational across hundreds of pools. Curve itself, after a difficult 2023-2024 period (CRV emissions controversy, Egorov-loan situation, several pool exploits), has stabilised but lost market share to Curve-descendant venues on individual chains. The StableSwap design remains the canonical reference, even as commercial leadership has fragmented across a more decentralised ecosystem. On the mechanism side, the paper has aged well: the invariant is still the right design for pegged-asset AMMs, the n-asset generalisation is still operationally important, and the Newton's-method on-chain solvability remains adequate for current gas economics. The unresolved limitations identified above — depeg-LP-loss, amplification-parameter selection, cross-pool arbitrage — are still unresolved, and several have produced real losses (Terra, sUSD, multiple smaller incidents). Curve V2's Cryptoswap (2021) and StableSwap-NG (2023) are both extensions rather than replacements: they preserve the hybrid-bonding-curve framework and add features (volatile-asset support, dynamic fees) without changing the core insight. DI's holistic assessment: StableSwap is one of the half-dozen foundational AMM papers in DeFi history, alongside Uniswap v1, Uniswap v2, Uniswap v3, and Balancer. Its narrow scope is a strength rather than a weakness: by solving the stablecoin-AMM problem decisively, it created the substrate for an entire venue category that did not exist before 2019 and is now central to DeFi market infrastructure. A nine on enduring importance for the technical contribution and an eight on contemporary commercial relevance, with a long-term ceiling determined more by chain-fragmentation dynamics than by the paper's intrinsic limitations.

Strengths

  • Hybrid invariant interpolating between constant-sum and constant-product is conceptually clean and mathematically tractable
  • Newton's-method on-chain solvability makes the design implementable within practical gas bounds
  • Native n-asset support enabled flagship 3pool and 4-asset stablecoin pools
  • Slippage advantage of 100-1000x near peg over constant-product transformed stablecoin DEX economics
  • Six-page brevity makes the paper unusually readable and has aided imitation across chains
  • Pool-factory pattern enabled permissionless deployment of new pegged-asset pools

Weaknesses

  • Depeg-LP-loss dynamic unanalysed; concentration in failing assets has produced repeated LP damage events
  • Amplification-parameter selection has no formal methodology; governance-driven A changes have caused instability
  • Cross-pool arbitrage and system-level risk dynamics not modelled; cascade effects underappreciated
  • Newton's-method gas costs higher than constant-product; affects competitiveness on gas-sensitive chains
  • Empirical comparison against alternatives (Uniswap v2, custom designs) not provided in paper itself
  • LP economics during depeg events not analysed; subsequent literature had to fill the gap

Key contributions

  • Hybrid bonding-curve invariant interpolating between constant-sum and constant-product via amplification parameter A
  • Newton's-method-solvable invariant function suitable for on-chain computation
  • N-asset generalisation of the bonding curve, supporting pools of 2, 3, 4+ stable assets
  • Asymmetric slippage profile: near-zero slippage at peg, graceful degradation to constant-product behaviour off-peg
  • Fee-on-trade model with virtual-price tracking for LP accounting
  • Liquidity-gauge architecture (introduced in subsequent papers) that tied LP rewards to governance-directed CRV emissions
  • Pool-factory pattern enabling permissionless creation of new stable-asset pools

TL;DR

Six-page paper that defined the stablecoin AMM venue category and remains the dominant pegged-asset bonding-curve design seven years later. Its narrow scope is the source of its decisive success; the depeg-LP-loss limitation it does not address is its lasting flaw.

Get DeFi Intel research in your inbox

Weekly long-form coverage of papers, incidents, jurisdictions, chains, tokens and the people building them. Free tier covers headlines; Pro adds the analyst-grade breakdowns.

Sources

  1. curve.fi/files/stableswap-paper.pdf

External references gathered from the body of this brief. Last reviewed 2026-05-03.