Skip to main content

Hybrid Vaults

Hybrid Vaults let you deposit BTC or ETH into YieldBasis markets even when standard deposit caps are full. You pair your BTC or ETH with crvUSD held in an approved savings vault (such as scrvUSD). Your crvUSD backing never enters the Curve pool—it stays in the savings vault earning its savings rate while unlocking personal deposit capacity for you.

Why Hybrid Vaults exist​

Every YieldBasis market borrows crvUSD to maintain a 2× leveraged Curve LP position that keeps full price exposure to BTC or ETH, up and down. Standard market caps limit how much crvUSD markets can borrow so large price swings do not pressure the crvUSD peg.

Hybrid Vaults offset that credit-line pressure: by holding real crvUSD in an approved savings vault, you unlock extra BTC or ETH deposit capacity above the standard market cap. Direct deposits remain the simpler choice when standard capacity is open; Hybrid Vaults let you scale when standard caps are full.

Illustrative capacity example​

Suppose the required stablecoin backing ratio is 45% and you choose scrvUSD as your backing vault:

Illustrative Hybrid Vault capacity at a 45% stablecoin fraction: 10,000 USD of crvUSD backing supports about 22,222 USD of LP position capacity split across two markets.Illustrative Hybrid Vault capacity at a 45% stablecoin fraction: 10,000 USD of crvUSD backing supports about 22,222 USD of LP position capacity split across two markets.
  • You deposit $10,000 crvUSD into your Hybrid Vault.
  • At a 45% backing ratio, $10,000 unlocks $10,000 / 0.45 ≈ $22,222 of total BTC or ETH deposit capacity.
  • You allocate $11,111 to a BTC market and $11,111 to an ETH market.
  • At an illustrative 4.5% scrvUSD savings rate, your crvUSD side earns ~$450/year while your BTC and ETH positions earn trading fees (or YB emissions if staked) and keep full price exposure to BTC or ETH, up and down.

How a Hybrid Vault works​

Each wallet deploys at most one personal Hybrid Vault linked to an approved savings vault.

Four-stage card flow of a Personal Hybrid Vault: (1) you pair BTC or ETH with crvUSD or scrvUSD backing, (2) your self-custodial Personal Hybrid Vault enforces the backing ratio while keeping scrvUSD earning, (3) the YieldBasis market unlocks extra 2x leveraged LP capacity beyond standard caps and mints yb-LP shares, and (4) you earn Trading Fees (FT APY) or YB Rewards (Token APR) alongside passive scrvUSD savings yield.Four-stage card flow of a Personal Hybrid Vault: (1) you pair BTC or ETH with crvUSD or scrvUSD backing, (2) your self-custodial Personal Hybrid Vault enforces the backing ratio while keeping scrvUSD earning, (3) the YieldBasis market unlocks extra 2x leveraged LP capacity beyond standard caps and mints yb-LP shares, and (4) you earn Trading Fees (FT APY) or YB Rewards (Token APR) alongside passive scrvUSD savings yield.

Four rules govern every Hybrid Vault:

  • Up to 16 markets at once: One vault can hold positions across up to 16 YieldBasis markets simultaneously.
  • Personal backing requirement: Your crvUSD backing must cover the required fraction of the combined Fundamental Value of all your open LP positions. Other users' backing does not expand your capacity.
  • Dynamic withdrawal lock: If BTC or ETH rises, the USD value of your open positions rises too, increasing your required crvUSD backing and reducing withdrawable crvUSD. You can withdraw only excess crvUSD above the requirement; closing all LP positions unlocks 100% of your backing.
  • Protocol-wide caps still apply: Governance sets overall market and backing-vault limits across all users.
Under the hood: vault deployment, backing ratio, and caps

Each wallet deploys at most one personal HybridVault clone via HybridVaultFactory.create_vault(crvusd_vault), selecting an allowlisted ERC-4626 savings vault (HybridVaultFactory.allowed_crvusd_vaults). Each vault supports up to MAX_VAULTS = 16 concurrent YieldBasis markets.

  • Required backing ratio: Configured by YB DAO in 1e18 precision; read live via HybridVaultFactory.stablecoin_fraction().
  • Market limit: Read via HybridVault.pool_limits(pool_id) (personal_limit + factory.pool_limits(pool_id)). Caps total market value across standard and Hybrid depositors; exceeding it reverts with Beyond pool limit.
  • Backing-vault limit: Read via HybridVaultFactory.crvusd_vault_limits(vault). Caps total required crvUSD across all Hybrid Vaults using that ERC-4626 vault (0 means unlimited); exceeding it reverts with Beyond vault limit.

Yield split and risk separation​

The two sides of a Hybrid Vault earn yield and carry risk independently:

SideAsset heldYield sourceRisk profile
crvUSD backingApproved savings vault shares (for example, scrvUSD)Savings vault rateSavings-vault smart-contract risk and crvUSD peg risk; zero Curve pool exposure.
Unstaked LP (Yield Bearing Vault)yb-LP sharesFundamental yield (FT APY) from trading fees minus borrow and rebalancing costsFull BTC or ETH price exposure, TRD on exit, and pool fee drag during low volume.
Staked LP (Staked Vault)Gauge sharesYB emissions (Token APR)Full BTC or ETH price exposure, TRD on exit, and watermark risk below the watermark.

Never add FT APY and Token APR for a single staked position. Staking trades fee-driven Fundamental Value growth for YB emissions; see Positions and yield. Hybrid Vaults charge no extra fee beyond standard YieldBasis market and Curve pool fees.

Managing your vault day to day​

Inside a Hybrid Vault, you manage your yield mode and your backing independently:

  • Switching yield modes (Convert): Move existing positions between Yield Bearing Vault (unstaked) and Staked Vault (staked) without closing your LP position or touching your crvUSD backing.
  • Adjusting backing vs. LP exposure: Adding crvUSD (or scrvUSD) immediately expands your available deposit capacity. Withdrawing from an LP position lowers your required backing and frees excess crvUSD for withdrawal. You cannot swap crvUSD directly into BTC or ETH inside a Hybrid Vault—each side is funded and redeemed in its own asset.
  • TRD and backing: Short-term Temporary Redemption Discount (TRD) swings do not change your required crvUSD backing. When you withdraw from an LP position, TRD applies the same way it does on a standard withdrawal. Review TRD and pricing before exiting.
Under the hood: oracle backing valuation and vault switching
  • Backing valuation: HybridVault calculates required crvUSD from your share of AMM.value_oracle() net of positive uncollected admin fees, so short-term TRD swings do not alter required backing.
  • Switching backing vaults: When your vault holds zero open LP positions (used_vaults is empty), call set_crvusd_vault(new_vault, redeem) to switch to another allowlisted ERC-4626 vault. Your old balance returns to your wallet (redeemed as crvUSD if redeem = True, or transferred as vault shares if redeem = False).
  • Allowlist removal: If YB DAO removes a savings vault from allowed_crvusd_vaults, existing users can still withdraw LP positions and backing, but new deposits revert with Vault wind-down until you close positions and switch to an allowlisted vault.

Emergency withdrawal​

If standard withdrawal fails (for example, during an oracle outage or after a market is killed), emergency withdrawal unwinds an unstaked position directly into proportional BTC or ETH and crvUSD.

Unstake before calling emergency withdrawal

Emergency withdrawal cannot act on staked gauge shares—you must unstake first. If a market's value oracle stops responding while the market is not killed, unstaking also reverts until the oracle recovers or governance kills the market.

Under the hood: emergency withdrawal mechanics

HybridVault.emergency_withdraw unwinds an unstaked position directly into proportional underlying asset and crvUSD. If pooled debt exceeds the crvUSD share of the LP, emergency withdrawal repays the shortfall from your backing vault (or from your wallet when crvusd_from_wallet = True). Newer markets include an LT.emergency_withdraw fallback that does not depend on AMM.value_oracle(), whereas older deprecated markets do not; check Contract addresses for active market versions.

Next steps​