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.

LlamaLend v1 is deprecated

LlamaLend v1 markets are being phased out and no new v1 markets will be deployed. Use LlamaLend v2 for all new markets and integrations.

Resources for Non-Technical Users

Non-technical users might prefer the User Docs 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 v2

Permissionless isolated lending markets for any ERC-20 pair, with ERC-4626 vaults, a LendFactory, Configurator, and LLAMMA soft liquidations.

Getting started
LlamaLend v1 (legacy)

Historical reference for the earlier crvUSD-paired lending contracts. Use the v2 reference for new integrations.

Legacy reference
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