Skip to main content

Positions and yield

Every yb-LP position earns in one of two modes—never both at the same time. Hold shares unstaked in the Yield Bearing Vault to earn more BTC or ETH from trading fees (FT APY), or stake them in the Staked Vault to earn YB token emissions (Token APR).

Never add FT APY and Token APR

A single yb-LP position earns either trading-fee growth (when unstaked) or YB emissions (when staked)—never both at the same time. Do not add FT APY and Token APR together.

Yield Bearing Vault (FT APY) vs. Staked Vault (Token APR)​

Think of the Yield Bearing Vault (unstaked yb-LP) as a compounding BTC or ETH position: trading fees grow the underlying asset backing each share automatically. Think of the Staked Vault (staked yb-LP) as trading away that fee growth in exchange for YB token rewards—while still sharing in pool losses if rebalancing costs temporarily exceed fees.

PropertyYield Bearing Vault (Unstaked yb-LP)Staked Vault (Staked yb-LP)
What you earn (app label)More BTC or ETH from trading fees (FT APY)YB token emissions (Token APR)
How yield arrivesCompounds automatically into share valueAccrues continuously; claimable at any time
Keeps trading-fee upsideYesNo (except catching up after a drawdown)
Shares in pool lossesYesYes
Watermark riskNoneApplies if the market dips below its prior peak
TransferableYes (ERC-20 in your wallet)Yes (ERC-20 gauge shares)

The diagram below traces how trading fees and YB emissions flow through the protocol:

Two yield streams. Trading fees, after the admin fee, increase Fundamental Value for unstaked yb-LP. YB emissions flow from the emission reserve through GaugeController, weighted by veYB votes, to staked yb-LP in LiquidityGauge. Admin fees route through FeeSplitter to the net-pressure reserve and to veYB holders via FeeDistributor.Two yield streams. Trading fees, after the admin fee, increase Fundamental Value for unstaked yb-LP. YB emissions flow from the emission reserve through GaugeController, weighted by veYB votes, to staked yb-LP in LiquidityGauge. Admin fees route through FeeSplitter to the net-pressure reserve and to veYB holders via FeeDistributor.

How trading fees split between unstaked LPs and the protocol​

Because staked LPs give up their trading fees in exchange for YB emissions, the protocol keeps a larger share of trading fees (the admin fee) as more of the market stakes.

At the same time, the remaining unstaked fee pool divides among fewer unstaked shares. As the staking ratio approaches 100%, the yield per unstaked share rises sharply, creating a self-balancing incentive for LPs to stay unstaked or unstake.

Illustrative split (suppose the minimum admin fee is 10%):

Share of market stakedProtocol admin feeUnstaked LP share
0%10.0%90.0%
50%~36.4%~63.6%
90%~71.5%~28.5%
99%~91.0%~9.0%

Use the interactive chart below to inspect how the split behaves across staking ratios:

Unstaked yb-LP: 63.6%Admin fees (to the FeeSplitter): 36.4%
0%0%25%25%50%50%75%75%100%100%Staking ratio (s/T)Share of fee value that reaches LTUnstaked yb-LPAdmin fees
Admin-fee share and unstaked share by staking ratio, at the watermark (example: minimum admin fee 10%)
Under the hood: admin-fee formula and rebase cap

Whenever LT checkpoints a positive change in vault value (with the staked pool at its watermark), it divides the gain between unstaked yb-LP holders and protocol admin fees along a square-root function of the market's staking ratio s/Ts/T:

fa=1−(1−fmin⁡)⋅1−s/Tf_a = 1 - (1 - f_{\min}) \cdot \sqrt{1 - s/T}

SymbolMeaningOnchain getter
faf_aAdmin-fee share of gains when staked value is at parityComputed in LT._calculate_values
fmin⁡f_{\min}Minimum admin feeFactory.min_admin_fee()
ssyb-LP balance held by the market's LiquidityGaugeLT.balanceOf(LT.staker())
TTTotal yb-LP supply of the marketLT.totalSupply()

As s/T→100%s/T \to 100\%, LT caps per-checkpoint share rebasing using SQRT_MIN_UNSTAKED_FRACTION = 10**14 to prevent division-by-zero errors or extreme spikes.

Why separate unstaked fees from staked YB emissions?​

Splitting both trading fees and YB emissions across every LP would break three core properties of the protocol:

  • Clean lending-collateral composability: Unstaked yb-LP auto-compounds directly into BTC or ETH inside LT.pricePerShare() with no external reward token to harvest. Lending markets such as Aave or LlamaLend can accept yb-LP as clean, yield-bearing collateral without custom reward-claiming wrappers.
  • Protocol revenue when staking is high: When LPs stake for YB emissions, they trade their trading-fee growth to the protocol. Those admin fees fund the crvUSD net-pressure stability reserve and distribute native BTC or ETH yield (yb-LP) to veYB lockers.
  • Self-throttling YB inflation: Because GaugeController scales each gauge's emission weight by s/T\sqrt{s/T}, YB inflation drops toward zero when LPs prefer native BTC or ETH fee yield and stay unstaked—preserving the emission reserve instead of over-paying liquidity that already stays for fees.

Below-the-watermark behavior​

Staked positions share pro rata in pool losses (such as periods when rebalancing costs exceed trading fees) but do not keep fee upside above their entry level.

Here is how the watermark protects stakers in plain English: if the market briefly dips below its prior peak, protocol admin fees pause and staked positions catch up first before protocol fees resume. Once staked value returns to its prior peak (the watermark), protocol fees resume and staked shares again earn only YB emissions.

Illustrative 100-day drawdown and rebuild​

Suppose you deposit 1 cbBTC at $100,000, BTC stays at $100,000, TRD is 0%, and your shares are the only staked shares in a gauge paying 18.25% Token APR ($50/day in YB):

  1. Day 0: You stake 1.00 cbBTC at the watermark.
  2. Days 1–30: Net rebalancing costs exceed trading fees by 2%. Your staked share value dips to 0.98 cbBTC, while the watermark stays at 1.00 cbBTC. YB emissions continue at $50/day.
  3. Days 31–100: Because the staked pool sits below its watermark, the protocol charges 0% admin fee and routes new gains pro rata until your staked value rebuilds to 1.00 cbBTC. Admin fees resume once parity returns.
  4. Exiting early vs. waiting: Unstaking on day 30 returns 0.98 cbBTC ($98,000) plus $1,500 in YB emissions ($99,500 total)—locking in the $2,000 share-value shortfall. Waiting until day 100 returns 1.00 cbBTC ($100,000) plus $5,000 in YB emissions ($105,000 total).
Illustrative 100-day timeline: staked value falls from 1.00 to 0.98 cbBTC below the flat ideal_staked watermark by day 30. While staked sits below ideal_staked, LT charges no admin fee and splits gains pro rata until parity returns around day 100.Illustrative 100-day timeline: staked value falls from 1.00 to 0.98 cbBTC below the flat ideal_staked watermark by day 30. While staked sits below ideal_staked, LT charges no admin fee and splits gains pro rata until parity returns around day 100.

Closing a watermark shortfall has no fixed timeline—it finishes only when cumulative net gains exceed cumulative costs by enough to restore parity.

Under the hood: watermark accounting and rebasing gauge shares

LT tracks the staked pool in LT.liquidity() using two accounting variables:

VariableMeaningWhen it updates
stakedCurrent value attributed to staked yb-LPOn every value checkpoint (deposits, withdrawals, gauge transfers, admin-fee claims)
ideal_stakedWatermark target for staked yb-LPOnly when yb-LP transfers into or out of LiquidityGauge (staking or unstaking)

When the gauge holds at least 0.01 yb-LP (MIN_STAKED_FOR_FEES = 10**16):

  • At parity (staked == ideal_staked): Gains split between unstaked LPs and admin fees along the faf_a curve. Staked LPs receive YB emissions only.
  • Below the watermark (staked < ideal_staked): LT charges no admin fee until gains repay ideal_staked - staked. New gains split pro rata between staked and unstaked holders, capping the staked share at the remaining gap (staked never exceeds ideal_staked).
  • Losses: Carry no admin fee and split pro rata between staked and unstaked holders, opening or widening a watermark gap. Below 0.01 yb-LP staked, LT applies the admin-fee curve to both gains and losses.
  • Partial stake/unstake below the watermark: LT scales ideal_staked by the same share ratio as staked, preserving the percentage shortfall.
  • Rebasing gauge balances: When vault value grows at parity, LT burns yb-LP from the gauge (and can mint shares back after losses) so staked value stays anchored to ideal_staked while unstaked LT.pricePerShare() rises. The number of yb-LP tokens backing each gauge share therefore changes over time.

Where protocol admin fees go​

Protocol admin fees do not sit idle. YieldBasis routes them to two places:

  • crvUSD stability reserve (Net Pressure): Funds liquidity incentives that support crvUSD during sharp market sell-offs. Read Fees and policies.
  • veYB lockers: Distributed as unstaked yb-LP shares every Thursday at 00:00 UTC, smoothed over 4 weeks. Claimed yb-LP immediately earns FT APY in your wallet or can be withdrawn for BTC or ETH.
Under the hood: FeeSplitter routing

When LT.withdraw_admin_fees() executes, LT mints new yb-LP shares representing accrued admin fees to Factory.fee_receiver() (FeeSplitter). Calling FeeSplitter.trigger() (or fill_epochs()) routes each market's yb-LP balance along two paths:

  • FeeSplitter.split_fraction() goes to FeeSplitter.pid() (MerklPIDDriver) to fund the crvUSD net-pressure reserve.
  • The remainder (1 - split_fraction()) forwards to FeeSplitter.fee_distributor() (FeeDistributor) for veYB holders.

Deciding whether to stake​

Staking outperforms staying unstaked over your holding period when:

YB emissions earned  ≥  Forfeited trading-fee growth  +  Expected watermark drag\text{YB emissions earned} \;\ge\; \text{Forfeited trading-fee growth} \;+\; \text{Expected watermark drag}

  • Consider staking if you expect weekly YB emissions (which depend on YB price, veYB gauge vote weight, and the gauge's s/T\sqrt{s/T} emission adjustment—holding veYB gives no per-user boost) to outweigh forfeited FT APY plus drawdown risk, and you can hold through a temporary watermark dip.
  • Stay unstaked if you want passive BTC- or ETH-denominated fee compounding without YB price exposure or watermark risk, or if you expect to exit on short notice.

Next steps​