Curve Finance

On this page 7

Curve Finance is a decentralized exchange and liquidity protocol in DeFi that specializes in swapping assets expected to trade at nearly the same price, such as dollar stablecoins or ether and its liquid staking derivatives. Its pools use a custom StableSwap invariant that keeps prices almost flat around the peg, which delivers very low slippage for large trades and steady fee income for liquidity providers.

Launched on Ethereum in January 2020, Curve became core infrastructure of the Crypto & blockchain economy: stablecoin issuers depend on its pools for deep on-chain liquidity, and its vote-escrow token model has been copied by dozens of other protocols.

How the StableSwap invariant works

The StableSwap invariant is a pricing formula that blends a constant-sum curve with a constant-product curve. A constant-sum rule (x + y = k) trades at exactly one-to-one with zero slippage but can be drained completely, while the constant-product rule of a classic automated market maker (x × y = k) never runs dry but quotes worse prices even for moderate trades.

Curve weights the two behaviors with an amplification coefficient, called A. When pool balances are close to equal, the curve behaves almost like constant-sum and prices stay near the peg. As one asset becomes scarce, the formula shifts toward constant-product, so prices move sharply and the pool cannot be emptied of the scarce coin.

The following table shows how the choice of A changes pool behavior.

A valuePrice curve near the pegTypical use
Low (about 10-50)Moderately curvedAssets with looser pegs or higher volatility
Medium (about 100-500)Nearly flatLiquid staking tokens against ether
High (1,000 or more)Very flatMajor dollar stablecoins with tight pegs
Too high for the assetsFlat until a sudden cliffRisky: pool absorbs a depeg at poor prices
Effect of the amplification coefficient

Governance can ramp A gradually over several days to retune a pool without creating an instant arbitrage opportunity.

Pool types and the CRV token economy

Curve runs several pool families, each tuned for a different asset relationship. Curve v2 crypto pools, introduced in 2021, use an internal price oracle and automatic repegging to concentrate liquidity around a moving price, which lets Curve serve volatile pairs such as USDT, WBTC and ETH.

Pool familyAssetsPricing approach
Plain stable poolsTwo to four pegged coinsStableSwap with fixed peg
MetapoolsOne coin paired with a base pool LP tokenStableSwap reusing existing liquidity
Lending poolsInterest-bearing wrapped coinsStableSwap on underlying value
Crypto pools (v2)Volatile assetsDynamic peg with internal oracle
Stableswap-NG poolsRebasing or oracle-priced tokensStableSwap with rate oracles
Main Curve pool families

The governance token CRV is emitted to liquidity providers through gauges, contracts that measure each pool’s stake. Holders can lock CRV for up to four years to receive veCRV, a non-transferable balance that decays linearly as the lock approaches expiry.

veCRV carries three rights: voting on gauge weights, which decides how new CRV emissions are split among pools; a share of trading fees, historically half of pool fees; and a boost of up to 2.5 times on a provider’s own CRV rewards. Because gauge votes direct millions of dollars in emissions, protocols compete to accumulate veCRV, a contest widely known as the Curve Wars.

Curve compared with other DEX designs

Curve differs from general-purpose exchanges in what it optimizes for: capital efficiency on correlated pairs rather than coverage of every token. The comparison below places it among neighboring DEX models.

DesignBest suited toLiquidity provider effortSlippage on pegged pairs
Curve StableSwapPegged and correlated assetsPassive depositVery low
Constant-product AMMAny token pairPassive depositModerate
Concentrated liquidity AMMPairs with known price rangesActive range managementLow if ranges are tight
Order book DEXProfessional market makingContinuous quotingDepends on makers
Curve and other exchange models

In practice, DEX aggregators route stablecoin legs through Curve whenever its quote beats concentrated liquidity pools, so most users touch Curve indirectly. Fees on stable pools are typically 0.01% to 0.04% per swap, far below the 0.3% common on general constant-product pools.

crvUSD and soft liquidation

In 2023 Curve launched crvUSD, an overcollateralized dollar stablecoin minted against assets such as ETH, wstETH and WBTC. Its distinctive feature is LLAMMA, the Lending-Liquidating AMM Algorithm, which replaces the abrupt liquidation used in protocols such as MakerDAO, Aave and Compound.

Collateral is spread across a band of price ranges. As the collateral price falls into that band, LLAMMA gradually converts collateral into crvUSD, and it converts back if the price recovers. This soft liquidation reduces the risk of losing a position to one sharp wick, although each conversion cycle costs the borrower a small loss similar to impermanent loss.

Risks and common misconceptions

Curve pools are only as safe as their weakest asset. When one stablecoin depegs, arbitrageurs sell it into the pool until the pool holds mostly that coin, and providers end up with the failing asset instead of the healthy ones. This happened in several pools during the 2022 TerraUSD collapse.

  • Smart contract risk: in July 2023 a reentrancy bug in certain Vyper compiler versions let attackers drain several Curve pools of tens of millions of dollars, although the Curve code itself was not at fault.
  • Governance concentration: large veCRV holders and aggregators such as Convex can steer emissions toward pools that benefit them.
  • Reward dilution: headline APY often depends on CRV emissions, whose value falls when the token price drops.
  • Misconception: stable pools do not eliminate impermanent loss; they minimize it only while pegs hold.

The following table links typical symptoms to their causes and the appropriate response.

SymptomLikely causeRecommended response
Pool balance skews above 70% one coinMarket doubts that coin’s pegReview the issuer and consider exiting
Rewards APY drops suddenlyGauge weight or CRV price fellRecheck net yield from fees alone
Withdrawal returns fewer tokens than depositedImbalanced withdrawal fee or depegWithdraw in balanced proportions
Unusual governance proposalParameter or gauge changeRead the proposal before the vote ends
Warning signs for Curve liquidity providers

The short version

Curve Finance is an automated currency booth for digital coins that are meant to be worth the same, such as two different digital dollars. Because the coins should be equal, Curve can swap large amounts at almost exactly one-for-one and charge a tiny fee.

People who deposit their coins into Curve earn those fees, plus extra reward tokens. The catch is simple: if one coin loses its value, the pool fills up with that coin, and depositors share the loss. Curve works best when every coin in a pool is trustworthy.

Where it makes a difference

A corporate treasury team holds 20 million in one dollar stablecoin and needs to pay a supplier who accepts only another. On a general constant-product exchange, a swap that size could lose several tenths of a percent to slippage. Routed through a large Curve stable pool with an amplification coefficient in the thousands, the same trade typically completes within a few basis points of one-to-one, including the swap fee.

On the other side of that trade sits a small DAO that parked part of its reserves in the same pool. It earns a share of the swap fee on every such trade, locks its CRV rewards as veCRV for a boost, and monitors pool balances weekly. When one coin’s share climbed past 70% during a market scare, the DAO withdrew in balanced proportions, limiting its exposure to the weaker stablecoin.