Skip to main content

How YieldBasis Works

Impermanent loss, also called divergence loss, happens when the value of your LP position underperforms simply holding the assets you deposited. In an AMM like Uniswap V2, this can happen whenever the market price moves away from your entry price. The larger the price move, the more the value of the LP position can drift from simply holding the asset.

YieldBasis eliminates that impermanent loss by applying continuous 2× compounding leverage to a Curve Cryptoswap LP position. The result is a liquidity position that tracks the underlying asset, such as BTC or ETH, while still earning trading fees from the pool.

Deposit flow

You deposit one asset. YieldBasis borrows an equal value of crvUSD, deposits both assets into a Curve Cryptoswap pool, and keeps the LP tokens inside LEVAMM to maintain 2× leverage.

Deposit flow: depositing 1 BTC borrows matching crvUSD, both assets enter the Curve pool, and LP tokens are held in LEVAMM at 2× leverage

Walk-through

onsider 1 cbBTC and $100,000 of stablecoins at a BTC price of $100,000. Three strategies, fees aside:

  1. Hold both separately. Value moves linearly with BTC.
  2. Deposit both as a plain xy=k LP. Pool value grows as 2kp2\sqrt{k \cdot p}, sublinear in pp. Loses to the hold baseline whenever price moves.
  3. Deposit only the cbBTC into YieldBasis; keep the $100k as cash. YieldBasis wraps the cbBTC at 2× leverage; the wrapped value tracks BTC one-for-one. Cash stays at $100k.
BTC moveHold bothPlain LP (xy=k)IL vs. holdYieldBasis + cash
−50% (BTC = $50,000)$150,000$141,421−5.72%$150,000 + fees
0% (BTC = $100,000)$200,000$200,0000%$200,000 + fees
+50% (BTC = $150,000)$250,000$244,949−2.02%$250,000 + fees
+100% (BTC = $200,000)$300,000$282,843−5.72%$300,000 + fees

The plain-LP shortfall always trails "just hold" as soon as BTC moves in either direction. YieldBasis recovers the baseline and keeps the trading fees the LP position earned.

YieldBasis vs a standard AMM (xy=k)

Standard AMM LP (xy=k)YieldBasis yb-LP
Value scaling in volatile-asset pricep\sqrt{p} (sublinear)pp (linear)
Capital you commitBoth assetsOnly the volatile asset (protocol borrows the stable)
Trading fees earnedYesYes (same Cryptoswap pool)
IL exposureYes — symmetric drag in either directionNone, at the depositor level
LeverageNone (1×)2× compounding
RebalancingNone; pool drifts as price movesVia arbitrage against LEVAMM as leverage drifts

The shape transformation from p\sqrt{p} to pp is the entire mechanism. Everything else (LEVAMM, VirtualPool, refueling, watermark) is the machinery that keeps the 2× leverage exact and the position self-unwindable.

Why the leverage stays at 2×

A static 2× loan drifts the moment price moves. If BTC rises 10%, the collateral appreciates but the debt does not, and the leverage ratio falls below 2.

LEVAMM fixes this without keepers or scheduled transactions. LEVAMM quotes a price that matches the external oracle only when leverage is exactly 2. When leverage drifts, LEVAMM's quote drifts with it, and arbitrageurs profit by trading against the stale quote. Each arbitrage trade pushes leverage back toward 2. No user action is required.

What you hold

A deposit mints yb-LP shares: your claim on the leveraged position. Hold them unstaked to earn trading fees, or stake them in the gauge to earn YB emissions instead.

Staked vs unstaked yb-LP in the BTC/crvUSD poolStaked vs unstaked yb-LP in the BTC/crvUSD pool

Unstaked yb-LP earns trading fees; staked yb-LP earns YB emissions. Pool fees split to unstaked holders and veYB via a dynamic admin fee.

yb-LP Tokens covers share semantics and the staked-versus-unstaked split in full. Stake and Unstake yb-LP frames the decision.