How YieldBasis works
YieldBasis turns a single-sided BTC or ETH deposit (WBTC, cbBTC, tBTC, or WETH) into a 2× leveraged Curve liquidity position. By keeping leverage anchored at 2× through automatic arbitrage rebalancing, a yb-LP share earns trading fees and keeps full price exposure to BTC or ETH, up and down.
A 1 BTC example: why normal pools fall behind
Suppose BTC trades at $100,000, and you start with 1 BTC plus $100,000 in cash ($200,000 total). Now suppose BTC rises 50% to $150,000:
- Hold 1 BTC + $100,000 cash: Your 1 BTC is now worth $150,000, so your total portfolio is $250,000.
- Standard 50/50 liquidity pool: The pool holds a passive constant-product curve (). As BTC climbs to $150,000, arbitrageurs buy underpriced BTC out of the pool until its quote matches the market, leaving you with less BTC and more stablecoins. Your pool share is worth $244,949—2.02% behind holding—the moment price settles at $150,000, even if no other trades occur.
- YieldBasis: You deposit only your 1 BTC and keep your $100,000 cash untouched. Behind the scenes, YieldBasis borrows $100,000 of crvUSD from a dedicated credit line, pairs it with your 1 BTC in a Curve pool, and automatically rebalances that 2× position as BTC moves. Before trading fees and rebalancing costs, your YieldBasis position grows to $150,000—matching 1 BTC 1:1—so your total portfolio is $250,000 plus trading fees.
The same math holds when BTC falls: your YieldBasis position moves 1:1 with BTC down as well as up.
Illustrative comparison across four BTC prices
Starting with 1 cbBTC and $100,000 in cash at a $100,000 BTC entry price, before trading fees, borrow interest, and rebalancing costs:
| BTC move | Hold 1 cbBTC + $100,000 | Plain 50/50 LP | Divergence vs. hold | YieldBasis 1 cbBTC + $100,000 cash (before costs) |
|---|---|---|---|---|
| −50% (BTC = $50,000) | $150,000 | $141,421 | −5.72% | $150,000 + fees |
| 0% (BTC = $100,000) | $200,000 | $200,000 | 0.00% | $200,000 + fees |
| +50% (BTC = $150,000) | $250,000 | $244,949 | −2.02% | $250,000 + fees |
| +100% (BTC = $200,000) | $300,000 | $282,843 | −5.72% | $300,000 + fees |
Subtract borrow interest and rebalancing costs from the + fees term. During low-volume or strongly trending periods, net return after costs can turn negative.
| Property | Standard 50/50 LP | YieldBasis yb-LP |
|---|---|---|
| Price exposure | Trails holding when price moves up or down | Moves 1:1 with BTC or ETH (before fees and costs) |
| Capital you supply | Both BTC/ETH and a stablecoin | BTC or ETH only (protocol borrows matching crvUSD) |
| Leverage | 1× (unleveraged) | 2× compounding target |
| Rebalancing | Passive curve; arbitrageurs shift your BTC/USD reserve mix as price moves | Arbitrageurs continuously adjust crvUSD debt to keep leverage anchored at 2× |
Under the hood: why passive AMMs lag holding, and why 2× leverage needs concentrated liquidity
Why no passive AMM curve avoids the drag: In any passive, unleveraged AMM without external price feeds, arbitrageurs trade against the pool's invariant until the pool's quote matches the market. By convex analysis, the pool's portfolio value must be concave () for prices to stay stable. If were flat (), the pool would never trade; if were convex (), any tiny price move would let arbitrageurs drain 100% of one reserve. Because is concave, a standard constant-product pool (xy = k) scales as and immediately trails holding () whenever price moves away from entry—even if no further trades occur.
How YieldBasis sidesteps this limit: YieldBasis steps outside passive unleveraged AMMs by pairing the LP position with continuous 2× compounding leverage (LEVERAGE = 2 * 10**18 in AMM / LEVAMM), squaring the curve back to linear exposure:
Why concentrated liquidity is required: Keeping leverage fixed at 2× requires borrowing more crvUSD as price rises and repaying crvUSD as price falls. In choppy markets, this creates an ongoing rebalancing cost (similar to leveraged-ETF volatility decay). On a plain xy = k pool, that rebalancing cost consumes nearly all doubled trading fees. YieldBasis pairs LEVAMM with Curve Cryptoswap's concentrated liquidity so trading fees per unit of capital can out-earn rebalancing costs. For the full derivation and the difference between static divergence loss and Loss-Versus-Rebalancing (LVR), read Math and economics.
What happens when you deposit and withdraw
When you deposit BTC or ETH, the market borrows matching crvUSD, supplies both into a Curve pool, holds the Curve LP tokens as collateral, and mints yb-LP shares to your wallet.
Deposit
- You send your BTC or ETH (for example, 1 cbBTC) to the market.
- The market borrows matching crvUSD from its credit line and adds both assets into the Curve pool.
- The market locks the resulting Curve LP tokens as collateral against the crvUSD loan and mints
yb-LPshares to your wallet.
Existing holders keep any Curve deposit imbalance fees and absorb any small internal price adjustment triggered by your deposit.
Withdraw
- Start with unstaked
yb-LPshares in your wallet. (If your shares are staked, unstake them first.) - The market burns your shares and removes your proportional slice of Curve LP collateral and crvUSD debt.
- The market unwinds the Curve LP tokens to repay the crvUSD loan and sends the remaining BTC or ETH to your wallet.
Because withdrawing unwinds against live Curve pool reserves, the exact amount you receive (Redemption Value) can differ from book value (Fundamental Value). Check TRD and pricing before exiting.
Under the hood: deposit and withdraw contract calls
Each YieldBasis market pairs a vault contract (LT), a leveraged AMM (LEVAMM), and a Curve Cryptoswap pool:
- Deposit (
LT.deposit(assets, debt, min_shares, receiver)):LTdrawsdebtcrvUSD fromLEVAMM's credit line, adds[debt, assets]to the Curve pool, sends the minted LP tokens toLEVAMM, verifies that total vault equity stays within half ofAMM.max_debt()(leaving headroom for debt expansion when prices rise), and mintsyb-LPshares priced atLT.pricePerShare(). On a pool runningYBOraclizedPolicy, the policy also verifies that added debt matchesLEVAMM's existing debt-to-collateral ratio withinratio_tolerance(), reverting withLT deviationif it does not. - Withdraw (
LT.withdraw(shares, min_assets, receiver)):LTburns unstakedyb-LPshares, removes pro-rata collateral and debt fromLEVAMM, unwinds Curve LP tokens to repay the debt, and sends the remaining volatile asset toreceiver. Preview live output viaLT.preview_withdraw(shares).
How YieldBasis keeps leverage at 2× automatically
A static 2× loan drifts the moment BTC or ETH moves. If BTC rises, collateral value grows while debt stays fixed, so leverage drops below 2×. If BTC falls, collateral shrinks while debt stays fixed, so leverage rises above 2×.
YieldBasis corrects this drift automatically without manual action from you:
- Price tracking: The market reads an internal valuation of its Curve LP collateral.
- Automatic rebalancing quotes: Whenever leverage drifts away from 2×, the market quotes a small discount or premium to external arbitrageurs.
- Arbitrage restores 2×: Arbitrageurs trade against the market to capture that spread. Every profitable arbitrage trade adds or repays crvUSD debt in the exact direction that pulls leverage back to 2×.
Because collateral and debt are pooled at the market level, you have no individual liquidation price. Instead, all depositors share pooled solvency risk, protected by an onchain safe debt band that blocks unsafe deposits or swaps.
Ongoing costs of maintaining 2× leverage
Keeping leverage at 2× involves two ongoing costs:
- Rebalancing cost: Arbitrageurs earn a small spread on each rebalance. Over many price swings, those spreads accumulate as rebalancing cost.
- Borrow interest (refueling): The market accrues interest on its borrowed crvUSD, then collects and donates that interest back into the Curve pool (refueling) to subsidize pool recentering and offset part of the rebalancing cost.
When cumulative rebalancing costs after refueling exceed trading-fee income, share value grows slowly or declines (PPS drag).
Under the hood: LEVAMM oracle, safe debt band, and refueling
- LP valuation:
LEVAMMreadsCryptopoolLPOracle, which prices the Curve LP token from the Curve pool'sprice_scale, itsvirtual_price, and the crvUSD/USD aggregator price.LEVAMM's invariant quotes the exact oracle price only at 2× leverage (debt = 50%of collateral value). Arbitrageurs typically trade againstLEVAMMviaVirtualPool. - Safe debt band:
LEVAMMenforces a safe debt ratio between 6.25% (1/16) and 53.125% (17/32) of collateral value at the oracle price (equilibrium is 50%):- Deposits revert (
Unsafe minorUnsafe max) if the resulting debt ratio falls outside the safe band. - Swaps against
LEVAMMthat end outside the safe band revert unless the trade moves the ratio closer to 2× equilibrium. - Withdrawals remove proportional collateral and debt, so the safe band does not block
LT.withdraw.
- Deposits revert (
- Refueling: Calling
LT.distribute_borrower_fees()collects accrued crvUSD borrow interest fromLEVAMMand donates it into the Curve Cryptoswap pool. When rebalancing costs after refueling exceed trading-fee income,LT.pricePerShare()grows slowly or declines.
Market states
Every YieldBasis market runs in one of three operational states:
| Market state | What it means for you | Deposits | Standard withdraw | Emergency withdraw | Staking / unstaking |
|---|---|---|---|---|---|
| Normal (live) | Market is healthy and active | Open (up to capacity cap) | Open | Open for unstaked shares | Open |
| Shutting down or oracle-degraded | Governance is winding down capacity, or the price oracle is temporarily unavailable | Blocked | Open if oracle works | Open for unstaked shares | Open if oracle works |
| Killed | Governance permanently paused the market for safe exit | Blocked | Blocked (use emergency withdraw) | Open for unstaked shares | Unstaking works |
Emergency withdrawal operates only on unstaked yb-LP shares. If your shares are staked and the market's value oracle stops responding while the market is not killed, unstaking reverts until either the oracle recovers or governance kills the market.
In a killed market, emergency withdrawal unwinds Curve LP collateral via a balanced removal (returning both volatile asset and crvUSD to settle debt) without relying on the value oracle.
Under the hood: market-state contract conditions
Market state is determined by AMM.max_debt(), AMM.value_oracle(), and AMM.is_killed():
- Normal (live):
is_killed() == FalseandAMM.value_oracle()succeeds. Deposits are open up tomax_debt() // 2vault equity.LT.emergency_withdraw()is callable byownerfor unstaked shares. - Shutting down / oracle-degraded: Governance lowers
max_debt()(deposits revert withDebt too high), orAMM.value_oracle()reverts whileis_killed() == False(standardwithdraw, staking, and unstaking revert;LT.emergency_withdraw()remains open forowner, oremergency_adminwithreceiver == ownerif the oracle reverts). - Killed:
Factory.admin()orFactory.emergency_admin()callsLT.set_killed(True). Deposits and standardLT.withdraw()revert (We're dead. Use emergency_withdraw).LT.emergency_withdraw()skipsAMM.value_oracle(), and unstaking fromLiquidityGaugeworks without staker rebase.
Next steps
- Positions and yield: compare unstaked FT APY against staked Token APR and watermark risk.
- TRD and pricing: understand Fundamental Value, Redemption Value, and Temporary Redemption Discount.
- Fees and policies: trace swap fees, pool policies, refueling, and Net Pressure.
- Provide and withdraw: walk through depositing and withdrawing step by step.