Provide and withdraw liquidity
Use this guide to deposit a volatile asset (such as WBTC, cbBTC, tBTC, or WETH) into a YieldBasis market, check your position's health and Temporary Redemption Discount (TRD), and withdraw back to your underlying asset.
A yb-LP position pays crvUSD borrow interest and rebalancing costs, which reduce trading fees and can produce negative net yield during low volume. Withdrawing while My TRD is negative locks in a realized loss below Fundamental Value. Read How YieldBasis works and TRD and pricing before depositing.
Prerequisites
Verify that you have all of the following before starting:
- The market's volatile asset in your wallet on Ethereum (for example WBTC, cbBTC, tBTC, or WETH).
- ETH in your wallet for gas.
- Open capacity in the target market. Check the Capacity column on the Earn page; if a market shows FILLED, standard deposits revert (use Hybrid Vaults if the market supports them).
Deposit into a YieldBasis market
-
Open yieldbasis.com and connect your wallet.
-
Select Earn to open the markets list.

-
Select your target market.
-
Choose how to hold your shares:
- Select Yield Bearing Vault → Deposit to hold unstaked
yb-LPshares and earn FT APY from trading fees. - Select Staked Vault → Deposit to deposit and stake in one transaction to earn Token APR in YB emissions.
- Select Yield Bearing Vault → Deposit to hold unstaked
-
Enter the asset amount to deposit and review the estimated share output and conversion rate.
Token approval scopeApproving an unlimited token allowance lets the deposit contract (
LT,LTDepositZap, orStakeZap) spend any balance of that token in your wallet. Approve only the exact amount if you prefer stricter limits. -
If prompted, approve the deposit contract to spend your asset and sign the approval transaction.
-
Submit the deposit and sign the transaction in your wallet.
Expected result
After confirmation, your wallet holds either transferable ERC-20 yb-LP shares (Yield Bearing Vault) or transferable LiquidityGauge shares (Staked Vault). Most wallets do not auto-detect yb-LP tokens; import the token address from Contract addresses if your balance does not appear.
How slippage (min_shares) and on-chain debt sizing work
When you deposit, LT.deposit pairs your volatile asset with borrowed crvUSD debt and mints yb-LP shares. Two protections govern the execution:
- Slippage bound (
min_shares): If the pool price moves before your transaction confirms and minted shares fall belowmin_shares, the transaction reverts withSlippage. - On-chain debt sizing (
LTDepositZap): On a pool runningYBOraclizedPolicy, the policy rejects any deposit whose crvUSD debt deviates fromLEVAMM's current debt-to-collateral ratio beyondratio_tolerance()(LT deviation). Because an off-chain quote can drift if a trade executes before your transaction,LTDepositZapsolves the exact book-ratio debt on-chain inside the deposit transaction and enforcesmin_sharesas sandwich protection.
Monitor position health and value
Before adding to or exiting a position, check these fields on the market page (Earn → My Markets):
| Field | What it shows |
|---|---|
| Fundamental Amount | Oracle-priced accounting value of your shares (Fundamental Value × shares). |
| Redemption | Live asset amount you receive if you withdraw right now. |
| My TRD / Market TRD | Signed percentage gap between Redemption Value and Fundamental Value for your position and the full market. |
| Vault mode | Whether your shares sit in Yield Bearing Vault (unstaked, earning fees) or Staked Vault (staked, earning YB emissions with watermark exposure). |
If Redemption sits below Fundamental Amount, check whether the gap comes from negative TRD (pool imbalance), fee/interest drag, or—for staked shares—a position below the watermark (staked < ideal_staked). Read TRD and pricing and Positions and yield to separate these effects.
Withdraw back to BTC or ETH
If My TRD is negative, withdrawing immediately locks in a realized loss below Fundamental Value. There is no guaranteed recovery timeframe; whether the discount closes depends on the future price path.
-
Open yieldbasis.com, connect your wallet, and navigate to Earn → My Markets.
-
Select the market you want to exit.
-
Compare Redemption with Fundamental Amount and check My TRD. If Redemption is below Fundamental Amount and your exit is not urgent, wait and check TRD again later.
-
Select the vault holding your shares:
- Yield Bearing Vault for unstaked
yb-LPshares. - Staked Vault for staked gauge shares (withdrawing from Staked Vault unstakes and withdraws in one transaction via
StakeZap.withdraw_and_unstake).
- Yield Bearing Vault for unstaked
-
Select Withdraw, enter the share amount, and verify the live Redemption Value preview.

-
Submit the withdrawal and sign the transaction in your wallet.
Expected result
The market burns your shares and transfers the underlying BTC or ETH token to your wallet. The returned amount reflects the Curve pool's imbalance fee (half the pool fee rate on the imbalanced portion; see Fees and policies for pools running YBOraclizedPolicy).
Migrating from an older market
When YB DAO deploys a newer market version for an asset and deprecates the older market, you can migrate your position forward in one transaction instead of withdrawing to your wallet and re-depositing manually.
- Forward-only rule: Migration contracts (
LTMigratorandLTMigratorGated) only move positions from an older factory market to the newest active market of the same asset. - Target pools running
YBOraclizedPolicy: UseLTMigratorGated, which computes the target market's book-ratio debt on-chain inside the migration transaction so it does not revert withLT deviation. - Check active markets and migrators: See Contract addresses for which markets are active versus deprecated, and Deposit, withdraw, and migrate for contract-level migration calls.
Common reverts and stop conditions
| Revert string | Cause and action |
|---|---|
Debt too high | The market reached its standard deposit cap (amm.max_debt() // 2). Wait for capacity or use Hybrid Vaults. |
Slippage | Pool price moved before confirmation and output fell below min_shares (deposit) or min_assets (withdraw). Refresh the quote and retry. |
LT deviation | On a pool running YBOraclizedPolicy, the deposit debt drifted outside ratio_tolerance(). Route through LTDepositZap (or refresh the UI quote) and retry. |
Remainder too small | Total market shares after a deposit or withdrawal cannot fall between 0 and 10**6 wei. Increase a dust deposit or slightly adjust a withdrawal amount. |
We're dead. Use emergency_withdraw | Standard withdrawals are disabled because governance killed the market. Use LT.emergency_withdraw instead; see Core vault and AMM. |
Next steps
- Stake and claim YB: stake
yb-LPfor YB emissions or unstake back to fee yield. - Use Hybrid Vaults: deposit above standard market caps using crvUSD backing.
- Dev: Deposit, withdraw, and migrate: programmatic deposit, withdrawal, and migration calls.