Skip to main content

Documentation Overview

Curve is a decentralized exchange (DEX) and automated market maker (AMM) on Ethereum and EVM-compatible sidechains/L2s, designed for the efficient trading of stablecoins and volatile assets.

Additionally, Curve has launched its own stablecoin, crvUSD, and Curve Lending, both featuring a unique liquidation mechanism known as LLAMMA.

This documentation outlines the technical implementation of the core Curve protocol and related smart contracts. It may be useful for contributors to the Curve codebase, third-party integrators, or technically proficient users of the protocol.

Resources for Non-Technical Users

Non-technical users might prefer the Resources site as it offers more general insights and information.


CRV & Governance

Core smart contracts include the Curve DAO Token, governance infrastructure governed by vote-escrowed CRV, mechanisms for fee collection and distribution, gauges, and many other components.

Getting started
Gauges & Emissions

System of liquidity gauges and the GaugeController that directs CRV inflation to liquidity providers based on veCRV votes.

Getting started
Curve AMM

Implementation of StableSwap and CryptoSwap algorithms into on-chain exchange contracts, including Stableswap-NG, Twocrypto-NG, Tricrypto-NG, pool factories and routers.

Getting started
crvUSD

Over-collateralized USD stablecoin powered by a unique liquidating algorithm (LLAMMA), which progressively converts the put-up collateral token into crvUSD when the loan health decreases to certain thresholds.

Getting started
Savings crvUSD (scrvUSD)

Savings version of crvUSD. An ERC-4626 compliant Vault that earns yield from crvUSD interest fees, with cross-chain oracle support.

Getting started
Llamalend

Permissionless lending markets to borrow or lend crvUSD against any asset with a proper oracle. Powered by Curve's unique liquidation algorithm, LLAMMA.

Getting started
Fees

Fee collection, distribution, and burning architecture including the FeeCollector, FeeSplitter, FeeDistributor, and CowSwapBurner.

Getting started
Integration

Section targeted at integrators covering contracts like AddressProvider, MetaRegistry, and the public Curve API.

Getting started