What's the fundamental difference between StableSwap and a general AMM like Uniswap's constant product formula?
A general AMM assumes the relative price between two assets can swing widely with supply and demand — a reasonable assumption for a volatile pair like ETH/USDC, where the market genuinely needs sharp price reactions to discover fair value. But a stablecoin pair like USDC/USDT is supposed to always be worth $1 on both sides — applying the same "assume prices swing widely" formula to a market that shouldn't need price discovery just manufactures unnecessary slippage cost.
StableSwap's fundamental difference is that it's mathematically optimized around the assumption that the assets should be worth the same: when pool balances are near equilibrium, it uses a nearly flat pricing curve so large trades barely move the price, only shifting back toward constant-product-like behavior once assets genuinely drift out of a safe range. This isn't a vague claim that "Curve is just better" — it's a fundamentally different formula chosen specifically for this asset class.
Why did someone bother inventing StableSwap instead of just using Uniswap's existing formula?
Stablecoin trading volume in DeFi is enormous — Curve's 3pool alone can see $50–200 million in daily volume. If every large stablecoin swap had to absorb the high slippage a constant-product formula produces, that would be a persistent, substantial hidden cost for institutions, market makers, and any protocol that frequently rebalances positions. Using a general AMM for stablecoin swaps effectively forces traders to pre-pay for volatility risk in a market that isn't supposed to have much volatility in the first place.
StableSwap's core reason for existing is eliminating that unnecessary cost — by recognizing that stablecoins are supposed to hold the same price, it mathematically flattens the trading curve across the critical range, so large trades only bear the risk that's actually real (the possibility of a genuine depeg) rather than paying for volatility that doesn't exist under normal market conditions. This is also why Curve has maintained market share and volume in stablecoin swaps far above general-purpose DEXs for years.
How does the amplification coefficient (A) actually work, and what happens when a pool becomes imbalanced?
The amplification coefficient A determines how wide StableSwap's "flat middle range" is: a higher A value (like 3pool's current 2000) makes the curve closer to a horizontal line when asset ratios are near balance, meaning even larger trades barely move the price; a lower A makes the curve closer to constant-product shape, with slippage starting to rise sooner. This parameter isn't fixed — it's set through Curve's governance (DAO voting), and there was even a past governance proposal to raise 3pool's A from 2000 to 5000, which ultimately failed over concerns it would amplify risk during a depeg.
When a pool actually becomes imbalanced — say one asset's share drifts significantly from its designed equilibrium — StableSwap automatically exits that flat range and starts behaving more like a constant-product formula, widening slippage. Arbitrageurs then rush in, buying the undervalued asset and selling the overvalued one, until the pool returns closer to balance. That mechanism isn't inherently a problem — but if the imbalance isn't temporary market noise but reflects a genuine loss of backing behind an asset (say, an issuer solvency crisis), arbitrage buying may fail to pull the price back, and slippage keeps widening instead of converging.
If I'm just an ordinary user who occasionally needs to convert between stablecoins, what concrete difference does this actually make for me?
The first concrete benefit is choosing the right route: for stablecoin-to-stablecoin swaps (USDT↔USDC, USDC↔DAI), prioritize interfaces that route through StableSwap venues like Curve — most aggregators (1inch, Matcha, CoW Swap) already do this automatically, so you don't need to compare manually, but understanding the mechanism helps you spot when a quote looks off. The second concrete benefit is reading warning signs: if a stablecoin swap suddenly shows slippage far higher than usual (say, jumping from a typical 0.01% to over 1%), that's usually not just network congestion or thin liquidity — it often means the market has already started pricing in depeg risk for one of the assets. Pausing to check news or community activity before pushing through elevated slippage is usually the better call.
The third benefit is understanding where the savings actually come from: for anyone regularly handling large stablecoin conversions — corporate treasury, or users frequently rebalancing across chains or stablecoins — choosing the right route can save well over a thousand dollars in slippage on a single million-dollar-scale trade, which adds up to a genuinely meaningful amount over time rather than just a theoretical difference.
Swap $1 million of USDC for ETH on Uniswap, and price impact can eat 0.1%–0.3% of the trade's value. Swap that same $1 million from USDC to USDT through a stablecoin-optimized exchange like Curve, and price impact typically runs around 0.01% — a difference of more than 10x. This isn't a coincidence, and it isn't simply a case of Curve being more capable. Behind it is a mathematical design called StableSwap, purpose-built to exploit the fact that stablecoins are supposed to all equal $1, achieving a level of slippage a general-purpose AMM structurally cannot match.
Most decentralized exchanges, including Uniswap, use a constant product formula: x × y = k. This formula assumes the relative price between two assets can swing widely with supply and demand — a reasonable assumption for a volatile pair like ETH/USDC, but the wrong tool for a pair like USDC/USDT that's supposed to always trade near parity. Under a constant product formula, even a modest imbalance in pool ratios causes prices to shift sharply, producing far more slippage on large trades than the actual risk warrants.
Curve's StableSwap algorithm blends two formulas together. When pool balances are near equilibrium — both assets roughly equal share, both near $1 — it behaves like a constant sum formula (x + y = D), which is nearly flat across the middle range, meaning large trades barely move the price. Only when the pool becomes significantly imbalanced, past a safe range, does the algorithm shift back toward constant-product-like behavior, ensuring it still functions — rather than being drained — when assets genuinely diverge from their peg. The parameter bridging the two formulas is called the amplification coefficient (A); the major 3pool (USDC/USDT/DAI) currently runs at A=2000, which stretches out that nearly-flat middle range, letting the pool absorb larger trades without visibly moving off $1.
Run the same $1 million USDC-to-USDT swap through different venues and the gap becomes concrete: Curve's 3pool runs roughly 0.008% slippage, working out to about $80. Uniswap V3's general pools run around 0.127%, over $1,200. Drop into a shallower pool like SushiSwap's, and slippage can exceed 0.3%, over $3,000. The gap doesn't come from different fee structures — it comes from whether the algorithm itself knows the two assets are supposed to hold the same price.
StableSwap's efficiency rests on one assumption: the assets in the pool genuinely hold close to $1 in value. Once an asset actually depegs — as USDC briefly did, trading near $0.88 on some venues during the March 2023 Silicon Valley Bank crisis — the amplification coefficient can no longer suppress the price deviation. The algorithm automatically shifts back toward near-constant-product behavior, sharply widening slippage, and pool composition rapidly skews as arbitrageurs rush in to buy the undervalued side. In other words, StableSwap's low slippage isn't a guarantee — it's an optimization built on the assumption that the peg holds, and that assumption is most fragile precisely during a crisis.
If you regularly convert between stablecoins — say, USDT to USDC to match a service or exchange requirement — routing through a StableSwap-based venue like Curve (most aggregators like 1inch or Matcha handle this automatically) can save meaningful slippage cost on large trades. Equally useful is understanding the flip side: if you notice unusually large slippage suddenly appearing on a stablecoin swap pool, that's often an early signal the market is pricing in depeg risk, not simply a case of thin liquidity — worth checking for a deeper confidence issue before pushing a trade through the elevated slippage.