Stableswap pools
Constant-product pools price everything by ratio, and that works well for volatile pairs. Stable pairs are different: two assets that should trade near 1:1, and a pool that prices by ratio would swing wildly on any imbalance. Stableswap designs exist to fix that.
The invariant tradeoff
Constant-product pools follow x*y=k: price moves with the ratio of reserves. For stablecoins, that means even a small imbalance moves the price away from par, and arbitrageurs eat the difference.
Stableswap designs use a flatter invariant: near par, the curve is nearly flat, so large trades move the price very little; away from par, it steepens, protecting LPs from one-sided runs.
- Flat near par: stable pairs trade close to 1:1 without slippage
- Steep at the edges: if one side starts to depeg, the pool stops absorbing cheaply
- The tradeoff: less arbitrage profit near par, more protection for LPs
Peg history
The design's history is a lesson in stress:
- Stableswap pools held their pegs through calm markets for years
- When a major stablecoin depegged, the steep part of the curve did exactly what it was designed to do: it stopped the pool from absorbing the depeg at par
- LPs in depegged pairs took the loss, but the pool structure meant the loss was bounded by the curve, not open-ended
When the design shines
- Pairs of near-pegged assets: stablecoins, wrapped versions of the same asset
- High-volume stable trading where slippage would otherwise kill the trade
- LPs who want fee income without the ratio volatility of volatile pairs
When it does not
- Pairs that should trade at different prices: a stableswap invariant assumes parity, and breaks that assumption
- Assets with no peg anchor: if neither side is anchored, the flat curve has nothing to be flat around
The takeaway
Stableswap designs exist because stable pairs need a different price function: flat near par, steep at the edges. The design shines on pegged pairs and shows its limits when a peg breaks. Understand which invariant a pool uses before you deposit, because the invariant is the product.