Skip to main content

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.

Check ongoing costs and TRD before committing capital

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​

  1. Open yieldbasis.com and connect your wallet.

  2. Select Earn to open the markets list.

    Earn page showing the YieldBasis markets list and Capacity column

  3. Select your target market.

  4. Choose how to hold your shares:

    • Select Yield Bearing Vault → Deposit to hold unstaked yb-LP shares 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.
  5. Enter the asset amount to deposit and review the estimated share output and conversion rate.

    Deposit tab showing volatile asset input and estimated yb-LP share output

    Token approval scope

    Approving an unlimited token allowance lets the deposit contract (LT, LTDepositZap, or StakeZap) spend any balance of that token in your wallet. Approve only the exact amount if you prefer stricter limits.

  6. If prompted, approve the deposit contract to spend your asset and sign the approval transaction.

  7. 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 below min_shares, the transaction reverts with Slippage.
  • On-chain debt sizing (LTDepositZap): On a pool running YBOraclizedPolicy, the policy rejects any deposit whose crvUSD debt deviates from LEVAMM's current debt-to-collateral ratio beyond ratio_tolerance() (LT deviation). Because an off-chain quote can drift if a trade executes before your transaction, LTDepositZap solves the exact book-ratio debt on-chain inside the deposit transaction and enforces min_shares as sandwich protection.

Monitor position health and value​

Before adding to or exiting a position, check these fields on the market page (Earn → My Markets):

FieldWhat it shows
Fundamental AmountOracle-priced accounting value of your shares (Fundamental Value × shares).
RedemptionLive asset amount you receive if you withdraw right now.
My TRD / Market TRDSigned percentage gap between Redemption Value and Fundamental Value for your position and the full market.
Vault modeWhether 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​

Check TRD before withdrawing

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.

  1. Open yieldbasis.com, connect your wallet, and navigate to Earn → My Markets.

  2. Select the market you want to exit.

  3. 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.

  4. Select the vault holding your shares:

    • Yield Bearing Vault for unstaked yb-LP shares.
    • Staked Vault for staked gauge shares (withdrawing from Staked Vault unstakes and withdraws in one transaction via StakeZap.withdraw_and_unstake).
  5. Select Withdraw, enter the share amount, and verify the live Redemption Value preview.

    Withdraw tab showing share input and returned underlying asset preview

  6. 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 (LTMigrator and LTMigratorGated) only move positions from an older factory market to the newest active market of the same asset.
  • Target pools running YBOraclizedPolicy: Use LTMigratorGated, which computes the target market's book-ratio debt on-chain inside the migration transaction so it does not revert with LT 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 stringCause and action
Debt too highThe market reached its standard deposit cap (amm.max_debt() // 2). Wait for capacity or use Hybrid Vaults.
SlippagePool price moved before confirmation and output fell below min_shares (deposit) or min_assets (withdraw). Refresh the quote and retry.
LT deviationOn a pool running YBOraclizedPolicy, the deposit debt drifted outside ratio_tolerance(). Route through LTDepositZap (or refresh the UI quote) and retry.
Remainder too smallTotal 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_withdrawStandard withdrawals are disabled because governance killed the market. Use LT.emergency_withdraw instead; see Core vault and AMM.

Next steps​