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.

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:
- At Exact Peg (
x_1 = x_2 = D / 2):prod(x_i) / (D/2)^2 = 1, so effective amplification equals fullA(e.g.,A = 2,000for fiatUSDC/USDT), compressing local curvature so the pool behaves like a constant-product pool *`2 A + 1 = 4,001x` larger** in TVL! - *At Severe Depeg (`x_bad = 0.92 D, xgood = 0.08 * D
)**: The balance product(0.92 * 0.08) / 0.25 = 0.2944shrinks automatically toward0, decayingchirapidly back into hyperbolic constant-product curvature soxgood` can never hit zero at any finite price—while instantaneously widening marginal slippage across the "Depeg Cliff"!
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,000on algorithmic/fragile pegs): Keeps price pinned at0.9992even after80%–88%of the pool has been drained ofUSDCand stuffed with failing tokenX! Honest LPs suffer near-total Loss-Versus-Rebalancing because arbitrageurs dump85%of pool depth at$0.999before the Depeg Cliff finally triggers! - Conservative Amplification (
A = 30–100forLSTs / Bridge Wrappers): Inflects price downward early once reserve skew crosses65/35, preservingUSDC/ETHcollateral for LPs and broadcasting an early market warning signal—enhanced inStableSwap-NGviaoffpeg_fee_multiplierwhich spikes swap fees from1 bpsup to20–50 bpsautomatically asprod(x_i)deviates from parity!
Optimal A Calibration Matrix Across Pegged Asset Risk Classes#
| Pegged Asset Archetype | Typical Curve A Parameter | 1: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,000 | 3,001x – 10,001x | ~86%–91% single-sided reserve skew | 2x – 5x (Base 1 bps -> 5 bps) |
Decentralized Overcollateralized (USDS/crvUSD) | 200 – 500 | 401x – 1,001x | ~76%–82% single-sided reserve skew | 5x – 10x (Base 2 bps -> 20 bps) |
Liquid Staking Tokens (stETH/ETH + Rate Oracle) | 30 – 100 | 61x – 201x | ~64%–71% single-sided reserve skew | 5x – 10x (Buffers slashing/queue discount) |
| Cross-Chain Bridged Assets / New LRTs | 10 – 30 | 21x – 61x | ~58%–63% early-warning inflection | 10x – 20x (Maximum LP depeg defense) |
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:
- 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
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-convexityRelated Amm Clob Intent Dex Settlement & Institutional Briefings
Explore Amm Clob Intent Dex Settlement Hub (20) →Amm Clob Intent Dex Settlement
Concentrated Liquidity AMMs, On-Chain CLOBs, Intent Solvers & MEV Microstructure: 2026 GuideAmm Clob Intent Dex Settlement
NFT Automated Market Makers (SudoAMM): Discrete Linear vs Exponential Bonding Curve MathAmm Clob Intent Dex Settlement
CEX-DEX Non-Atomic Arbitrage: Inventory Risk, Block-Time Markout Curves & Builder DominanceAmm Clob Intent Dex Settlement
EIP-4844 Blob Base-Fee Spikes: Multi-Dimensional Gas Contention & L2 Liquidation LatencyAmm Clob Intent Dex Settlement
ERC-7683 Cross-Chain Intents: OriginSettler Escrows, Filler Working Capital & Optimistic ProofsAmm Clob Intent Dex Settlement
Auction-Managed AMMs (am-AMM) & Bunni/Diamond Hooks: Recapturing LVR On-Chain for LPsAmm Clob Intent Dex Settlement
Uniswap v3 Tick Spacing, Q64.96 Virtual Reserves & Concentrated Liquidity Depth MathAmm Clob Intent Dex Settlement
Loss-Versus-Rebalancing (LVR): Continuous-Time Black-Scholes AMM Adverse SelectionErc721 Erc1155 Eip712 Permit Security
ERC-721 safeTransferFrom & onERC721Received Reentrancy: Max-Supply Bypass & Escrow DrainsErc721 Erc1155 Eip712 Permit Security
Blind-Signing Deprecation (eth_sign), Pre-Sign Transaction Simulation & EIP-7730 Clear SigningErc721 Erc1155 Eip712 Permit Security
ERC-1155 Batch Transfer Security: Mandatory Receiver Hooks, Array Mismatches & Gas-Bomb DoSErc721 Erc1155 Eip712 Permit Security
CREATE2 Metamorphic Contracts, Cancun EIP-6780 SELFDESTRUCT & Bytecode Provenance Audits
NFTVenue Ledger Data, Benchmarks & Contributor Records
CC BY 4.0 Open Data
Open Institutional Datasets (CSV / JSON) →
Download desk-compiled quantitative series & schemas.
2026 Reference Matrix
2026 Institutional Benchmarks & Thresholds →
Statutory capital, clearing, margin & rate conventions.
Editorial Records
Authors & Review Records →
View named contributors where those records are available.
Complete Index
Master Research & Dossier Archive →
Browse all published briefings by topic pillar & date.
