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).
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.
| Property | Yield 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 arrives | Compounds automatically into share value | Accrues continuously; claimable at any time |
| Keeps trading-fee upside | Yes | No (except catching up after a drawdown) |
| Shares in pool losses | Yes | Yes |
| Watermark risk | None | Applies if the market dips below its prior peak |
| Transferable | Yes (ERC-20 in your wallet) | Yes (ERC-20 gauge shares) |
The diagram below traces how trading fees and YB emissions flow through the protocol:
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 staked | Protocol admin fee | Unstaked 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:
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 :
| Symbol | Meaning | Onchain getter |
|---|---|---|
| Admin-fee share of gains when staked value is at parity | Computed in LT._calculate_values | |
| Minimum admin fee | Factory.min_admin_fee() | |
yb-LP balance held by the market's LiquidityGauge | LT.balanceOf(LT.staker()) | |
Total yb-LP supply of the market | LT.totalSupply() |
As , 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-LPauto-compounds directly into BTC or ETH insideLT.pricePerShare()with no external reward token to harvest. Lending markets such as Aave or LlamaLend can acceptyb-LPas 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
crvUSDnet-pressure stability reserve and distribute native BTC or ETH yield (yb-LP) toveYBlockers. - Self-throttling YB inflation: Because
GaugeControllerscales each gauge's emission weight by , 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):
- Day 0: You stake 1.00 cbBTC at the watermark.
- 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.
- 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.
- 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).
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:
| Variable | Meaning | When it updates |
|---|---|---|
staked | Current value attributed to staked yb-LP | On every value checkpoint (deposits, withdrawals, gauge transfers, admin-fee claims) |
ideal_staked | Watermark target for staked yb-LP | Only 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 curve. Staked LPs receive YB emissions only. - Below the watermark (
staked < ideal_staked):LTcharges no admin fee until gains repayideal_staked - staked. New gains split pro rata between staked and unstaked holders, capping the staked share at the remaining gap (stakednever exceedsideal_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-LPstaked,LTapplies the admin-fee curve to both gains and losses. - Partial stake/unstake below the watermark:
LTscalesideal_stakedby the same share ratio asstaked, preserving the percentage shortfall. - Rebasing gauge balances: When vault value grows at parity,
LTburnsyb-LPfrom the gauge (and can mint shares back after losses) so staked value stays anchored toideal_stakedwhile unstakedLT.pricePerShare()rises. The number ofyb-LPtokens 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-LPshares every Thursday at 00:00 UTC, smoothed over 4 weeks. Claimedyb-LPimmediately 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 toFeeSplitter.pid()(MerklPIDDriver) to fund the crvUSD net-pressure reserve.- The remainder (
1 - split_fraction()) forwards toFeeSplitter.fee_distributor()(FeeDistributor) for veYB holders.
Deciding whether to stake
Staking outperforms staying unstaked over your holding period when:
- Consider staking if you expect weekly YB emissions (which depend on YB price, veYB gauge vote weight, and the gauge's 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
- Stake and claim: step-by-step instructions to stake
yb-LPand claim YB rewards. - TRD and pricing: check Redemption Value before exiting.
- Fees and policies: trace where trading fees originate and how admin fees fund Net Pressure.
- Math and economics: full derivation of the admin-fee curve and onchain rebase cap.