Skip to content
NFTVenue Ledger
Directory

Amm Clob Intent Dex Settlement

Curve StableSwap Amplification Coefficient (A): Newton-Raphson Math & Depeg Convexity Cliffs

Curve StableSwap blends zero-slippage constant-sum curves with bankruptcy-proof constant-product asymptotes via dynamic amplification A—creating razor-thin peg spreads and sharp depeg cliffs.

By Dr. Devon Kurosawa, PhDReview not recorded · Updated
Curve StableSwap Amplification Coefficient (A): Newton-Raphson Math & Depeg Convexity Cliffs — NFTVenue Ledger 2026 quantitative & supervisory data card
NFTVenue Ledger (Concentrated Liquidity AMMs, On-Chain CLOBs, Intent Solvers & MEV): Egorov dynamic chi amplification, uint256 Newton-Raphson loops, and off-peg fee shields.Source: NFTVenue Ledger Institutional Research DeskLicense: CC-BY-4.0

Trading $10,000,000 USDC -> USDT on a $100M constant-product x * y = k pool incurs a staggering ~18.2% price impact, whereas a pure constant-sum x + y = D pool offers 0.00% slippage right until the cheaper stablecoin drains 100% of the vault's good reserves in a single block! Formulated by Michael Egorov (2019), Curve StableSwap dynamically interpolates between sum x_i = D (around equilibrium x_1 = x_2 = D/2) and prod x_i = (D/n)^n (in the tails) using dimensionless Amplification Coefficient A multiplied by balance-ratio term prod x_i / (D/n)^n.

Anchored inside our concentrated AMM, CLOB & intent DEX master guide, tuning A (and StableSwap-NG dynamic off-peg fee multipliers) governs multi-billion-dollar stablecoin, LST (stETH/ETH), and LRT liquidity across Ethereum and multi-chain ecosystems in our marketplaces directory like Acala Swap and Astroport.

The StableSwap Invariant & Why chi Vanishes Automatically During a Depeg#

For n pegged assets with equilibrium invariant sum D, StableSwap enforces: *`A n^n * sum(xi) + D = A * D * n^n + D^(n+1) / (n^n * prod(xi))`**

Observe the elegance of dynamic leverage chi = A * prod(x_i) / (D / n)^n:

  1. At Exact Peg (x_1 = x_2 = D / 2): prod(x_i) / (D/2)^2 = 1, so effective amplification equals full A (e.g., A = 2,000 for fiat USDC/USDT), compressing local curvature so the pool behaves like a constant-product pool *`2 A + 1 = 4,001x` larger** in TVL!
  2. *At Severe Depeg (`x_bad = 0.92 D, xgood = 0.08 * D)**: The balance product (0.92 * 0.08) / 0.25 = 0.2944 shrinks automatically toward 0, decaying chi rapidly back into hyperbolic constant-product curvature so xgood` can never hit zero at any finite price—while instantaneously widening marginal slippage across the "Depeg Cliff"!
Curve StableSwap-NG on-chain Newton-Raphson root solver and off-peg dynamic fee defense pipeline
Curve StableSwap-NG on-chain Newton-Raphson root solver and off-peg dynamic fee defense pipelineVerified Exhibit

The Governance Hazard of Setting A Too High (UST / 3pool Post-Mortem)#

Choosing A is a high-stakes risk trade-off between normal-regime aggregator volume share and catastrophic depeg inventory toxicity:

  • Over-Amplification (A = 2,000–5,000 on algorithmic/fragile pegs): Keeps price pinned at 0.9992 even after 80%–88% of the pool has been drained of USDC and stuffed with failing token X! Honest LPs suffer near-total Loss-Versus-Rebalancing because arbitrageurs dump 85% of pool depth at $0.999 before the Depeg Cliff finally triggers!
  • Conservative Amplification (A = 30–100 for LSTs / Bridge Wrappers): Inflects price downward early once reserve skew crosses 65/35, preserving USDC/ETH collateral for LPs and broadcasting an early market warning signal—enhanced in StableSwap-NG via offpeg_fee_multiplier which spikes swap fees from 1 bps up to 20–50 bps automatically as prod(x_i) deviates from parity!

Optimal A Calibration Matrix Across Pegged Asset Risk Classes#

Quantitative Distribution · Typical Curve A Parameter
Typical Curve A Parameter1:1 Peg Depth Multiplier (2A + 1)
01Tier-1 Fiat T-Bill Stableco…1,500 – 5,00002Decentralized Overcollatera…200 – 50003Liquid Staking Tokens (stET…30 – 10004Cross-Chain Bridged Assets …10 – 30
Pegged Asset ArchetypeTypical Curve A Parameter1:1 Peg Depth Multiplier (2A + 1)Depeg Cliff Threshold (1% Price Drop)Recommended offpeg_fee_multiplier
Tier-1 Fiat T-Bill Stablecoins (USDC/USDT)1,500 – 5,0003,001x – 10,001x~86%–91% single-sided reserve skew2x – 5x (Base 1 bps -> 5 bps)
Decentralized Overcollateralized (USDS/crvUSD)200 – 500401x – 1,001x~76%–82% single-sided reserve skew5x – 10x (Base 2 bps -> 20 bps)
Liquid Staking Tokens (stETH/ETH + Rate Oracle)30 – 10061x – 201x~64%–71% single-sided reserve skew5x – 10x (Buffers slashing/queue discount)
Cross-Chain Bridged Assets / New LRTs10 – 3021x – 61x~58%–63% early-warning inflection10x – 20x (Maximum LP depeg defense)
Reserve composition skew required to move StableSwap spot price below 0.990 across A=10, 100, 500, and 2000
Reserve composition skew required to move StableSwap spot price below 0.990 across A=10, 100, 500, and 2000Verified Exhibit

Exact Newton-Raphson get_y Iteration & Dynamic Off-Peg Fee Math#

On-chain Vyper contracts solve the degree-(n+1) polynomial for updated output reserve y given new input reserve x'_i via quadratic Newton-Raphson iteration y_{k+1} = (y_k^2 + c) / (2 * y_k + b - D), paired with StableSwap-NG dynamic fee scaling:

Formula or model from the articleNot independently verified
Curve StableSwap 2-Pool Newton-Raphson Solver & Dynamic Off-Peg Fee:
  • Given invariant D, amplification Ann = 4 * A, and post-input reserve x_1:
  • c = D^3 / (4 * x1 * Ann), b = x1 + (D / Ann)
  • Iterate until |y{k+1} - yk| <= 1 wei:
  • y{k+1} = (yk^2 + c) / (2 * y_k + b - D)
  • StableSwap-NG Dynamic Fee Function:
  • xpprodratio = (4 * x1 * x2) / (x1 + x2)^2 [Equals 1.000 at 50/50; drops -> 0 off-peg]
  • feffective = (feebase * offpegmultiplier) / ( (offpegmultiplier - 1) * xpprodratio + 1 )
  • Worked Stress Depeg Audit (USDC/SyntheticUSD Pool, D = $100M, feebase = 2 bps, offpegmultiplier = 15):
  • 1) Normal 50/50 Equilibrium (x1 = $50M, x2 = $50M => xpprodratio = 1.000):
  • => f_effective = (2 * 15) / (14 * 1.000 + 1) = 30 / 15 = 2.00 bps (Tight aggregator spread!)
  • 2) Depeg Attack Skew 85% / 15% (x1 = $85M, x2 = $15M => xpprodratio = 4 * 0.85 * 0.15 = 0.510):
  • => f_effective = 30 / (14 * 0.510 + 1) = 30 / 8.14 = 3.69 bps -> At 95/5 skew (ratio = 0.19): jumps to 8.20 bps!

StableSwap vs Concentrated Liquidity 1-Tick Pegs#

How does passive StableSwap-NG compare against parking liquidity inside a single +/- 1 bps tick on Uniswap v3 concentrated ticks? Unlike a 1-tick v3 range that goes 100% inactive and stops earning fees the instant a stablecoin wobbles to $0.9988, StableSwap smoothly transitions along its asymptotic tail while charging elevated off-peg fees—compare discrete non-divisible NFT curves next in SudoAMM NFT bonding curves inside our AMM, CLOB & Intent DEX hub.

Frequently asked questions

Why can Curve StableSwap never run completely out of one token like a constant-sum pool?

Because leverage term chi scales with the product of reserves prod(x_i); as any single token reserve approaches zero, chi collapses to zero and the curve asymptotically becomes a hyperbolic constant-product x*y=k curve.

Why must changes to Curve amplification coefficient A be ramped slowly over 14+ days?

On an imbalanced pool (e.g., 70/30), changing A instantaneously shifts the spot exchange rate and virtual price in a single block—allowing an attacker or governance insider to sandwich the admin parameter tx.

How does StableSwap-NG handle yield-bearing Liquid Staking Tokens like wstETH or sDAI?

StableSwap-NG queries on-chain exchange-rate oracles (or ERC-4626 convertToAssets) to normalize appreciating wrapper balances back to 1:1 underlying parity before running the Newton-Raphson invariant loop.

When is Curve StableSwap better for LPs than a 1-tick Uniswap v3 stablecoin position?

Passive treasuries prefer StableSwap-NG because liquidity stays active across temporary 10–50 bps peg wobbles with automatic off-peg fee surges, without paying rebalancing gas.

Publication record

Published
November 13, 2026
Updated
November 14, 2026
Author
Dr. Devon Kurosawa, PhD
Review
Review not recorded
Automated fact check
Passed in the stored pipeline record
Source URLs
3 recorded

AI assistance recorded: anthropic/claude-opus-4.6. This field does not establish human review or source verification.

Academic & Institutional Attribution

Cite This Research & Embed Live Data Card

Open Attribution License (CC BY 4.0)

Standard academic & institutional research paper citation format.

Dr. Devon Kurosawa, PhD. (2026, November 14). Curve StableSwap Amplification Coefficient (A): Newton-Raphson Math & Depeg Convexity Cliffs. NFTVenue Ledger. https://nftvenueledger.com/protocols/curve-stableswap-amplification-coefficient-depeg-convexity
Explore Amm Clob Intent Dex Settlement Hub (20) →

NFTVenue Ledger Data, Benchmarks & Contributor Records

Curve StableSwap Amplification (A) & Depeg Convexity Math | NFTVenue Ledger