Crypto Newbie

Crypto Newbie / Simulators / Curve StableSwap

Curve StableSwap Simulator

Curve.fi pioneered a new AMM invariant designed specifically for assets that are supposed to trade near a fixed peg — stablecoins like USDC/USDT, and pegged assets like stETH/ETH. The result: 10-100× less slippage than Uniswap on equivalent trades. This simulator runs the real StableSwap math so you can see exactly why and when Curve wins.

1 (Uniswap-like)100 (Curve default)2000 (very flat)
USDC reserve1,000,000
USDT reserve1,000,000
2,000,000
USDC

Curve (A=100, 0.04% fee)

You receive9,995.5027 USDT
Effective rate0.99955 USDT/USDC
Slippage from peg+0.045%
Fee3.9998 USDT (0.04%)

Uniswap V2 (0.3% fee)

You receive9,871.2871 USDT
Effective rate0.987129 USDT/USDC
Slippage from peg+1.2871%
Fee(0.3% V2 standard)

💡 Takeaway

For this trade size, Curve's slippage is smaller than Uniswap's. That's why every serious stablecoin swap routes through Curve.

Why a special AMM for stablecoins?

Stablecoins are supposed to trade 1:1 with each other. Uniswap's x·y=k curve doesn't know that — it treats USDC/USDT like ETH/USDC and gives you slippage on every trade as if the assets could legitimately drift apart. For a $1M swap on a $1M/$1M Uniswap V2 USDC/USDT pool, you'd get ~0.5% slippage. Curve gets that down to ~0.01% — the same math but with the invariant biased so the curve is nearly flat at the peg.

How the amplification coefficient (A) works

A is the dial that controls curvature. At A=0, the Curve invariant degenerates to Uniswap's x·y=k. At A→∞, it becomes constant-sum (x+y=D) — zero slippage at the peg but disastrous when reserves drift. Real Curve pools use A around 100. The slider above lets you see exactly how raising A flattens the curve near the centre while keeping enough x·y=k tail to handle peg breaks.

When Curve loses

Curve assumes the assets in the pool actually maintain their peg. When that assumption breaks — UST in May 2022, the USDC depeg in March 2023 — Curve pools experience massive directional drift as arbitrageurs drain the recovering side. The 'wrong' side of a depegging pool ends up holding essentially worthless tokens. The flatness that makes Curve great in normal times becomes the trap when one asset breaks.

Should newbies use Curve?

If you ever need to convert between stablecoins (USDC ↔ USDT, USDC ↔ DAI), Curve will save you money vs. swapping on Uniswap or via a CEX with high spread. Aggregators like 1inch or CowSwap will automatically route through Curve for stablecoin swaps — you don't have to use Curve directly. For LP'ing: 3pool (USDC/USDT/DAI) was historically a low-risk yield play, but yields have compressed; check current APY vs. CEX stablecoin yields before committing.

Frequently asked questions

+Is Curve safer than Uniswap?

Mechanically equivalent — both are battle-tested AMMs with 4+ years of mainnet history. Curve has higher concentration risk during depeg events because the flat curve amplifies drift. Otherwise the smart-contract risk is comparable.

+What's a good A value?

100 is the most common across major Curve stablecoin pools. Higher A (200-500) is used for stronger pegs (USDC/DAI). Lower A (50-100) is used when the assets have slightly looser correlation. Pool deployers choose A at creation; it can be adjusted later via governance.

+Why do Curve fees seem so low?

Because stablecoin swaps are high volume + low margin by nature — arbitrageurs route huge size through Curve to capture tiny basis-point spreads. 0.04% per swap on $10M daily volume is real money. Curve LPs earn primarily from CRV token emissions, not from swap fees alone.

+Can I provide liquidity to Curve as a beginner?

Yes — Curve LPing on a 3pool is one of the lower-risk DeFi yield options. But the APY has compressed substantially since the 2021 peaks. Check current yield before committing. Also: gas costs on Ethereum mainnet can eat 6-12 months of yield on small positions; consider L2 Curve deployments (Arbitrum, Optimism) for sub-$5k positions.

+What's the difference between Curve and Balancer for stablecoins?

Balancer uses a weighted geometric mean (similar to Uniswap but with adjustable weights). For pure stablecoin pools Balancer added a 'Stable Math' similar to Curve's invariant. In practice Curve still owns the deepest stablecoin liquidity in DeFi; Balancer focuses more on multi-token weighted pools.