Most descriptions of Curve's StableSwap invariant say it's "like Uniswap but flat in the middle." That framing obscures the actual mechanism. The invariant is a weighted combination of two functions: the constant-sum (x + y = k, zero slippage, zero price discovery) and the constant-product (xy = k, infinite range, always solvent). The amplification coefficient A controls the blend.
At A = 0, the pool is a standard constant-product AMM. As A → ∞, the curve approaches constant-sum — zero slippage for any trade within the pool's reserves. In practice, A values for major stablecoin pools sit between 100 and 2000. The 3pool (DAI/USDC/USDT) historically ran at A = 2000; the stETH/ETH pool operated around A = 30 because those assets have a wider expected deviation.
The design trade-off is precise: higher A compresses liquidity into a tighter band around peg, which means less slippage at peg but catastrophically more slippage once price deviates beyond that band. The curve doesn't degrade linearly — it hits an inflection where behavior snaps toward constant-product, and impermanent loss accelerates faster than LPs who only operated at-peg would expect.
- A = 2000 means ~99.97% of effective liquidity sits within ±0.5% of the 1:1 price. Outside that band, depth collapses.
- Changing A is governance-controlled and rate-limited — ramps over a minimum 24-hour period to prevent sandwich exploits around parameter shifts.
- The multi-asset generalization (used in 3pool, for instance) extends the invariant to n dimensions, but the fundamental blend logic is identical.