Curvefi

Curvefi swap pools, stablecoin borrowing, and lending markets

Curvefi is the Curve Finance ecosystem for token swaps, liquidity provision, collateral-backed stablecoin loans, and isolated lending markets. Its original StableSwap design concentrates liquidity around the expected price relationship between correlated assets. CryptoSwap supports assets whose relative prices move more widely. Liquidity providers (LPs) supply pool reserves and receive pool shares, while lenders provide funds through dedicated lending vaults. The crvUSD system and LlamaLend use a collateral-conversion mechanism called LLAMMA to manage loans approaching liquidation. These functions carry different costs and exposures: swap output depends on pool conditions, lending withdrawals depend on available liquidity, and borrowing creates debt secured by collateral.

Updated:

Trading reserves and collateral-backed credit

Curve’s pools exchange tokens from shared reserves, while its credit systems connect deposited collateral or lender funds with borrowing. An automated market maker, or AMM, calculates exchange amounts from the pool’s balances and pricing rules. Pool liquidity determines how much a trade moves that price. The protocol developed beyond its original correlated-asset focus to include moving-price pools, stablecoin loans, and lending infrastructure. Pool factories and lending-vault interfaces also allow other applications to integrate these functions.

Providing trading liquidity creates exposure to a pool’s asset mix. Lending supplies a particular borrowed asset and earns interest from borrowers. A collateral-backed loan creates an obligation to repay debt while maintaining sufficient collateral health. Governance determines parts of the protocol’s configuration and incentive allocation; it does not make every pool or market economically equivalent.

Depegging and concentrated asset exposure

Pool liquidity cannot repair a broken asset peg, and liquidity providers may accumulate the asset traders want to sell. Stronger assets can leave the pool as traders exchange weaker assets into its reserves. An LP position can therefore lose value even when both tokens originally targeted the same denomination. The pool’s mathematics manages exchange pricing; it does not restore backing or redemption rights. Contract defects and dependencies on external asset systems introduce additional risks.

StableSwap, CryptoSwap, and FXSwap pricing

StableSwap, CryptoSwap, and FXSwap concentrate liquidity around different price relationships, shaping which assets and market conditions each design suits.

Correlated-asset pools

Liquidity near the reference rate

StableSwap uses a relatively flat pricing curve near the assets’ expected relationship, reducing price impact around that region. As reserves become severely imbalanced, pricing becomes less favorable for trades draining the scarce asset. The degree of concentration depends on the pool’s amplification setting. A stablecoin denomination alone does not establish that every underlying asset remains exchangeable at its intended value.

Tokens with changing exchange rates

Stableswap-NG supports ordinary ERC-20 tokens, tokens with rate oracles, rebasing tokens, and ERC-4626 vault shares. Its accounting can adjust for supported changes in balances or underlying value. Equal token quantities therefore need not represent equal economic amounts. Correct asset-type configuration matters when a token’s units change their relationship to the underlying asset.

Moving-price pools

CryptoSwap concentrates and automatically recenters liquidity around a moving price. Its rebalancing rules limit recentering costs relative to trading profits. Insufficient profits can leave liquidity centered on an outdated price. Twocrypto-NG and Tricrypto-NG implement this approach for different pool structures. Automatic recentering removes the need for an LP to select a trading range manually, while retaining exposure to changing asset prices.

FXSwap serves externally priced markets using variable-price StableSwap concentration and oracle-guided recentering. Its refuels add liquidity to a finite buffer for recentering costs without giving providers a withdrawable LP position. When that buffer is depleted, recentering must satisfy the pool’s normal profit constraints. Depletion does not itself stop swaps. Reliable external pricing, effective arbitrage, and sufficient rebalancing resources are therefore material parts of this design, beyond the volatility of the assets themselves.

Swap costs and minimum output

Swap costs reflect the pool’s fee, the trade’s price impact, and the blockchain resources the chosen execution consumes. Stableswap-NG can increase its effective fee as reserves become imbalanced. CryptoSwap also uses dynamic fees. A pool’s implementation, configuration, balances, and trade size determine the relevant quote; a single advertised fee cannot describe every exchange.

Price impact describes the trade’s effect on pool pricing. Execution slippage describes a difference between quoted and executed output. A minimum-output guard rejects execution below the chosen output threshold. Network fees remain separate, and approval transactions can add costs where the selected token-spending method requires them.

A swap above or below its minimum output

All amounts and execution outcomes here are hypothetical. The intended swap uses 1,275 input-token units, quotes 1,271.8 output-token units after the pool fee, and requires at least 1,268.5 output-token units.

If execution returns 1,270.5 output-token units, the swap clears its minimum by 2 units. A confirmed successful transaction and the credited output balance establish receipt of those tokens. A pending transaction hash alone does not establish that result. The recipient can keep the credited 1,270.5 output-token units.

Diagram: Curvefi - A swap above or below its minimum output

View full-size image

If changed pool conditions instead produce a calculated output of 1,266.5 units, the guarded swap reverts. Its token exchange does not take effect. An included failed transaction still consumes gas. The next action is to reassess the quote and network fee before deciding whether to submit another swap.

The successful output differs from the quote by 1.3 output-token units. That difference does not reveal the pool fee or total trading cost. Increasing the input changes the pool quote, while network demand changes gas costs independently. Changing the minimum output changes which execution amounts the swap accepts.

Liquidity shares and withdrawal composition

Liquidity-provider tokens represent a share of a pool’s assets, whose quantities and values change as trading and other pool activity occur. They do not promise the return of the original deposit in its original proportions. Trading fees retained for LPs contribute to pool value. Relative price changes can still make a liquidity position underperform holding its deposited assets separately.

Withdrawal methods also affect the assets received. A proportional withdrawal returns assets reflecting the pool’s current composition. A supported single-asset withdrawal concentrates the exit into one token and can incur fees and price impact. An imbalanced withdrawal likewise follows implementation-specific accounting. The chosen method’s quoted output and minimum amounts matter alongside the number of LP tokens surrendered.

Metapools connect a token with a base pool’s LP token, extending access to the base pool’s underlying liquidity. This adds exposure to the base pool’s assets and contracts. An LP share, a deposited asset, and a base pool’s underlying token remain different objects, even when a router makes exchanges between them accessible through one route.

LlamaLend markets and version boundaries

LlamaLend connects lenders and borrowers in isolated markets, each with a specific collateral token and borrowed token. Lenders deposit the borrowed asset into an ERC-4626 vault and receive shares reflecting their claim. Borrowers interact with a controller managing loans, debt, collateral, and market limits. Each market has its own oracle and interest-rate policy. Isolation separates market accounting and liquidity, while common contract or asset dependencies can still affect multiple markets.

LlamaLend v1 required crvUSD on one side of each market. Those legacy markets are being phased out, and new markets use v2. LlamaLend v2 permits pairs beyond crvUSD, provided the tokens and configuration meet its factory requirements. A version’s broader capabilities do not establish that every pair has an active market or sufficient liquidity. Borrow caps, oracle choices, and administrative settings remain specific to the individual deployment.

Lending interest accrues through vault-share accounting, with the rate governed by the market’s monetary policy. Accounted assets include outstanding debt, so share value differs from immediately withdrawable liquidity. Withdrawals require enough unborrowed assets. Available withdrawal and redemption limits reflect that constraint, even when the displayed position value covers the amount a lender wants to retrieve.


Borrower collateral within LLAMMA bands

LLAMMA distributes borrower collateral across price bands and enables its conversion into the borrowed asset as oracle prices move through those bands. The name expands to Lending Liquidating Automated Market Maker Algorithm. Arbitrage trades perform the conversions. Falling prices can progressively exchange collateral into borrowed tokens, a process called soft liquidation. A price recovery can reverse the direction, exchanging those tokens back into collateral. Arbitrage and AMM fees can erode collateral value during these conversions. Earlier conversion losses remain, so recovery does not restore the original position automatically.

Interest adds to the debt, and repeated conversions can erode collateral value and loan health. A LlamaLend v2 position can undergo hard liquidation when its health falls below zero. Soft liquidation therefore changes how collateral exposure develops without eliminating liquidation risk.

The borrowed tokens inside the collateral position do not automatically repay the loan. Borrowing costs include interest and losses the position incurs during these conversions.

crvUSD borrowing and savings exposure

crvUSD is Curve’s dollar-targeting stablecoin, available through collateralized minting markets and exchanges with suitable liquidity. A minting-market loan uses DAO-approved collateral and creates repayment obligations for its borrower. Buying the token through a swap does not create such a loan for the buyer. Holding crvUSD and borrowing crvUSD therefore involve different responsibilities, even though the received token has the same name.

PegKeepers adjust crvUSD liquidity in designated pools, while monetary policies influence borrowing rates. These mechanisms support the target peg. They cannot make every market trade execute at that target or remove the risks of collateral and paired assets. The stablecoin’s trading price and a borrower’s collateral health measure different things.

Savings crvUSD, or scrvUSD, represents deposits in a separate crvUSD savings vault. Its deposited crvUSD stays in that vault rather than funding LlamaLend loans. The vault receives an allocated portion of crvUSD borrowing interest fees, and rewards affect the value of its shares. Owning ordinary crvUSD does not automatically create a savings position. The savings vault’s yield source and liquidity structure differ from a lending-market vault.


CRV, veCRV, and gauge incentives

CRV is Curve’s governance token, and locking it creates veCRV, a voting balance used for governance and gauge-weight decisions. The term means vote-escrowed CRV. Voting power reflects the locked amount and remaining lock duration, declining as expiry approaches. The native voting-escrow contract permits locks up to four years. veCRV is nontransferable, and locked CRV remains unavailable for withdrawal until the lock expires.

A gauge distributes incentives to qualifying staked pool or lending-vault shares. CRV emissions require DAO approval and gauge weight from veCRV voting. Gauges can also distribute external token incentives without that approval. Trading fees, borrower interest, and gauge rewards have different sources. Where a gauge supports a veCRV boost, it affects CRV emission rewards rather than multiplying every source of income. Locking CRV also provides access to governance and protocol-fee revenue sharing.

Which Curvefi function fits my intended use?

A swap changes the token held; a pool deposit supplies trading reserves; lending funds loans; borrowing creates debt secured by collateral. The desired position determines which contract and economic exposure matter. A fee quote belongs to a particular swap, while a lending rate belongs to a particular market. A governance lock creates a different commitment from either deposit.

Curve operates on Ethereum and other networks compatible with the Ethereum Virtual Machine (EVM), with availability differing by deployment. A pool or lending feature on one network does not establish identical support elsewhere. The remaining choice is the specific pool or market, its assets, available liquidity, and applicable contract settings.

Curvefi FAQs

Can I swap on Curvefi without owning CRV?

CRV ownership is not a general prerequisite for Curvefi swaps. A standard swap uses the selected input asset and the authorization its spending method requires. Network execution also needs a way to pay the applicable gas fee. CRV belongs to the governance and incentive system, so acquiring it is a separate choice.

What does connecting a wallet authorize?

Connecting a wallet lets a website access the permitted account information and request actions. Connection alone does not approve token spending or execute a swap. Transaction approvals and signed permissions have their own effects, which depend on the request. Disconnecting the website does not cancel token allowances already recorded on the blockchain.

Which token approvals remain after a swap?

Any unused allowance can remain for the specific token, spending contract, and network after a swap completes. Some token implementations retain an unlimited allowance even after spending. The token contract’s allowance record establishes the remaining permission. A completed trade or disconnected wallet does not necessarily remove it.

Are Curvefi transactions and positions private?

Standard Curvefi interactions on public EVM networks expose transaction activity and contract state on the blockchain. An address can be pseudonymous while its swaps, deposits, or loans remain observable. Connecting a wallet also reveals the permitted address to the connected website. Wallet control therefore does not establish financial privacy.

Does a pool listing prove a token is authentic?

A pool listing does not authenticate its tokens. Permissionless deployment allows pools containing tokens other than the asset a familiar symbol appears to describe. Token names and symbols do not uniquely identify contracts. The relevant identity includes the token’s contract address and network, alongside its actual backing or redemption mechanism.

What does an annualized lending APR measure?

A lending APR expresses a lending rate on an annual basis at the time of calculation. It does not fix the interest a vault will earn over the following year. Market utilization, rate-policy settings, and applicable fees affect lending returns. An APR also does not automatically include compounding or separate incentive-token rewards.

Can revoking a token approval remove a Curvefi deposit?

Revoking an approval changes a spender’s permission to transfer that token from the wallet. It does not withdraw assets already deposited into a pool, lending vault, or collateral position. Those positions have their own withdrawal or repayment rules. An approval for a position’s share token is also separate from an approval for its underlying asset.