Yield Basis 백서

Yield Basis

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 24쪽 중 4쪽

semantics and staked vs unstaked. Provide Liquidity : the first-deposit walkthrough. Deposit flow Walk-through YieldBasis vs a standard AMM (xy=k) Why the leverage stays at 2× What you hold Related ## /user/overview/yb-lp-tokens On this page When you deposit into a YieldBasis market, you receive yb-LP shares — an ERC-20 token representing your pro-rata claim on a 2× leveraged Curve Cryptoswap LP position. A classic AMM LP share vs a yb-LP share ​ A classic AMM LP share is a pro-rata claim on two assets in a pool that prices trades by formula (for constant-product pools, x * y = k ). When the volatile asset's market price moves, the share's underlying value — measured at that new market price — falls below what you'd have by holding both assets outside the pool. That shortfall is called impermanent loss . It exists from the moment the market price diverges from the pool's deposit point, whether or not any trader has acted on it: the LP value function is just shaped that way. A yb-LP share is a pro-rata claim on the same kind of pool position, held at 2× leverage with the stablecoin side financed by borrowing. The 2× leverage exactly cancels the LP's underperformance: the share's value tracks the volatile asset one-to-one, and trading fees accrue on top. See Compounding Leverage . Two ways to hold yb-LP ​ Mode Where it sits What you earn Transferable? Unstaked Your wallet Fundamental Value growth from trading fees Yes (ERC-20) Staked The gauge YB emissions, shown as Token APR No, while staked Choose based on whether the YB emissions on your gauge, priced in USD, beat the Fundamental Value growth you forfeit. See Stake and Unstake yb-LP for the decision framework. Staked positions can also experience watermark drawdown during volatile periods. See Watermark and Recovery . How new shares are priced ​ New shares are minted at the current Fundamental Value, so a deposit doesn't dilute existing holders. Example. The cbBTC vault has 100 shares outstanding and Fundamental Value = 1.0 cbBTC per share. A 10 cbBTC deposit mints 10 new shares (total: 110). Later, after fees push Fundamental Value to 1.05, another 10 cbBTC deposit mints only 10 / 1.05 ≈ 9.524 new shares. Existing holders are not diluted. Fundamental Value vs Redemption Value ​ Two numbers describe a yb-LP share: Fundamental Value — what the vault accounts the share at. Redemption Value — what a withdrawal would return right now. These usually stay close. When they diverge, the gap is the Temporary Redemption Discount (TRD) : it goes negative when the pool is imbalanced and a withdrawal would return less than Fundamental Value. Arbitrage closes the gap on its own. Related ​ Fundamental Value, Redemption Value, and TRD : the two share values, the contract sources behind them, and how TRD resolves. Stake and Unstake yb-LP : the decision framework for which mode to hold. Watermark and Recovery : how staked positions take drawdown during volatile periods. Compounding Leverage : why 2× is the exact leverage that cancels IL. A classic AMM LP share vs a yb-LP share Two ways to hold yb-LP How new shares are priced Fundamental Value vs Redemption Value Related ## /user/protocol/compounding-leverage On this page Compounding leverage is the mechanism that lets YieldBasis cancel impermanent loss. Your yb-LP share holds a Curve LP position at exactly 2× leverage, all the time, without you needing to do anything. The problem with regular leverage ​ The simplest way to get 2× exposure is to borrow against your LP and double down once. But that leverage drifts the moment the price moves. If the price of BTC increases by 10%, the collateral appreciates while the debt stays the same, so the leverage ratio falls below 2×. If BTC continues to increase in value, leverage drifts further. If the value of BTC decreases, leverage increases and the position can be liquidated. You could fix this by rebalancing manually — sending a transaction every time leverage drifts by some threshold. Two problems: Cost : every rebalance pays gas and trading fees. Frequent rebalancing eats yield. Drift between rebalances : in the moments between trigger events, your leverage is off-target and you are accumulating impermanent loss exactly as if you had no leverage at all. What YieldBasis does instead ​ YieldBasis maintains 2× leverage with no LP action required. The position lives inside an on-chain AMM called LEVAMM. LEVAMM never trades on its own; it just posts a quote tied to the external oracle price. When the oracle moves, LEVAMM's quote moves with it, and a gap opens between LEVAMM's price and the underlying Curve pool's spot. Arbitrageurs see that gap and trade against LEVAMM to capture it. The trade direction that's profitable for the arbitrageur is exactly the direction that pushes leverage back toward 2×. You don't pay these arbitrageurs directly. They pay themselves out of the spread. Arbitrageurs rebalance the pool whenever the spread and rebalancing budget are large enough for the trade to be worth it. You hold a yb-LP share whose value tracks the underlying asset 1:1. When BTC moves +50%, your equity moves +50%. When BTC moves −50%, your equity moves −50%. No drift, no impermanent loss at the depositor level. Example ​ Start with $1,000 to deploy at BTC = $60,000 — call it $500 of cbBTC plus $500 of crvUSD. If BTC moves to $90,000 (+50%): Strategy Outcome Plain Curve LP (no leverage) $1,225 — grows by √1.5, lags hold by $25 Hold the cbBTC + crvUSD separately $1,250 — the IL baseline YieldBasis (continuous 2×) $1,500 — tracks BTC 1:1 2× leverage without rebalancing, never rebalanced between $1,225 and $1,500 — drifts off-target as price moves The continuous 2× position lands on the BTC move exactly. The plain LP shows the impermanent loss the leverage cancels. What you pay ​ Continuous rebalancing is not free for the protocol. Each arbitrage trade pays the arbitrageur a small spread. Stack those small payments over many price moves and you get a real cost, rebalancing cost . YieldBasis funds most of this cost out of the protocol's own revenue. crvUSD borrower interest accrues inside LEVAMM and gets returned to the Cryptoswap pool as a rebalance subsidy (see Refueling ). Pool trading fees cover the rest. In normal volatility, the net drag on yb-LP returns is small. In high-volatility, the rebalancing happens more often and the drag is larger. This rebalancing cost is not impermanent loss. IL is the structural shortfall vs holding, and it is cancelled at the depositor level by the leverage identity above. Rebalancing cost is the operational price LEVAMM pays to keep the leverage exactly at 2× in real time. Why exactly 2×, not some other number ​ The LP value function for a constant-product pool grows with the square root of the price (for the math behind this, see Math Primer ). To get a wrapped position that grows linearly with the price — which is what cancels impermanent loss — you need to apply leverage that "undoes" the square root. That requires exactly 2×. Less leaves residual IL; more overshoots. So 2× is not a tuned parameter: the p \sqrt{p} p ​ shape of the underlying LP forces it. Related ​ Fundamental Value, Redemption Value, and TRD — what your share is worth and why redemption sometimes lags Watermark and Recovery — what happens when rebalancing cost temporarily outruns inflows Fees and veYB Revenue — where the refueling subsidy comes from Volatility Decay — the deep dive on why the p \sqrt{p} p ​ curve loses to holding, and what 2× leverage cancels Oracle Design — where the oracle price LEVAMM anchors to comes from, and why it can't be moved in-block Arbitrage & MEV — who executes the rebalancing trades and what they earn for it Dev: AMM — invariant algebra and safe-debt bounds Math Primer — full derivation of the leverage identity The problem with regular leverage What YieldBasis does instead Example What you pay Why exactly 2×, not some other number Related ## /user/protocol/fundamental-value-redemption-value-and-trd On this page Two values describe a yb-LP share at any moment: what the vault says it's worth, and what you'd receive if you withdrew right now. The gap between them is the Temporary Redemption Discount (TRD) . The two values you'll see ​ Value What it is What it answers Source Fundamental Value The vault's accounting of per-share value. Oracle-priced and smoothed. What is my share worth on the vault's books? LT.pricePerShare() Redemption Value What you would receive if you withdrew right now. Reads live pool state. What would I get out today? LT.preview_withdraw(shares) They are labelled as Fundamental PPS and Redemption PPS . Both are visible at the same time. Fundamental Value reflects what the vault holds per share, independent of current exit slippage. It grows from trading fees, favourable LEVAMM rebalances, and refueling subsidies. Redemption Value reflects the actual price at which Cryptoswap and LEVAMM would execute your withdrawal right now. When the two agree, the underlying market and the vault are in sync. When they differ, you can see the gap as TRD. Example ​ You hold 100 yb-LP shares in a cbBTC market right after a sharp BTC move. Fundamental Value puts the position at 1.02 cbBTC . Redemption Value would deliver 1.01796 cbBTC if you withdrew right now. TRD = 1.01796 / 1.02 − 1 = −0.20% . On a $100,000 cbBTC position, the vault's books reflect about $200 of value that a withdrawal in the same block would not deliver. The $200 isn't lost; it's the transient gap before arbitrage closes Cryptoswap's lag against the LEVAMM oracle. This kind of gap resolves within hours: arbitrageurs move Cryptoswap's state back into alignment and Redemption Value catches up to Fundamental Value. In most market conditions TRD sits at or near zero and a withdrawal delivers Fundamental Value. When TRD is open, it's normally negative : Redemption sits below Fundamental and the negative sign signals that the realisable exit value is below the books. Positive TRD (a small premium where Redemption sits above Fundamental) does occur but is rare. A meaningful gap in either direction is itself uncommon. Why TRD appears ​ The practical consequence first: when the external price moves, a withdrawal goes through a pool that hasn't fully caught up yet, so it delivers slightly less than the books say. That gap is TRD. The mechanism behind it is that YieldBasis sits on top of two AMMs that rebalance on different schedules. Cryptoswap (the underlying pool). Cryptoswap concentrates its liquidity around an internal reference price called price_scale . When the external market moves, price_scale doesn't follow immediately — it waits for two conditions: A minimum price move. The external price must have shifted by at least the pool's adjustment_step . This threshold varies by pool: the WETH pool sets it around 0.5%, while BTC pools use a much smaller value (so any meaningful move qualifies, and the binding constraint becomes the second condition). A profit floor. The pool tracks cumulative LP profits and maintains a floor at 50% of those lifetime profits. It only recenters if doing so leaves per-LP value above that floor. The gap between current value and the floor is the pool's rebalance reserve — what the pool can spend on recentering without dipping below the floor. When both conditions are met, Cryptoswap recenters. Until they are, its internal price_scale is stale relative to the market. LEVAMM (YieldBasis's leveraged AMM). LEVAMM tracks the oracle, rebalanced block by block by arbitrageurs (see Compounding Leverage ). It doesn't wait for fee accumulation; it follows the oracle in real time. When the external price moves, LEVAMM tracks it immediately and Fundamental Value reflects the new price. Cryptoswap waits for its two conditions and lags behind. A withdrawal in that window unwinds through a stale Cryptoswap state, delivering slightly less than the oracle-implied value. That difference is TRD. The gap closes as Cryptoswap recenters: trading volume accumulates fees, the rebalance reserve grows, and arbitrageurs trade through both AMMs to align them. TRD formula ​ TRD is the signed gap between Redemption and Fundamental: TRD = Redemption Value Fundamental Value − 1 \text{TRD} = \frac{\text{Redemption Value}}{\text{Fundamental Value}} - 1 TRD = Fundamental Value Redemption Value ​ − 1 Negative TRD means Redemption is below Fundamental — the typical shape of a gap when one is open — and you'd give up that fraction of value by exiting now. Positive TRD (rare) means Redemption is above Fundamental — a small premium on exit. Zero TRD means the two are aligned, which is the prevailing case. The dashboard shows this as Market TRD (pool-wide) and My TRD (your position). How TRD resolves ​ Resolution typically takes hours. Dynamic rpf and the tightened tweak_price flow keep Cryptoswap's price_scale close to the oracle, so arbitrage closes any gap quickly. If you exit while TRD is open, the discount becomes a real loss. A one-hour wait usually closes most of a gap, and the typical gap is small enough that an immediate exit costs little. Two distinct longer-term effects ​ TRD is the short-term gap. Two separate longer-term effects can also reduce what you receive, and they apply to different holders. They are not the same as TRD, and they are not the same as each other. PPS drag (unstaked). Fundamental Value itself can grow more slowly than expected, or briefly decrease, when cumulative rebalancing costs outpace fee income over a stretch of holding. This is structural and bound to the holding period. Fundamental Value resumes climbing once forward fees catch up. An unstaked LP who held through a 30-day stretch where rebalance cost exceeded fee income by 0.6% would see Fundamental Value drop from 1.0000 to 0.9940; recovery depends on subsequent fees outrunning costs. Watermark shortfall (staked). If you're staked and price-per-share sits below its high-water mark, staked is in recovery. Future admin-fee inflows route to staked first, restoring parity. The same 0.6% net loss for a staked LP shows up as price-per-share falling 0.6% below its high-water mark; subsequent fees route there until the gap closes. YB emissions continue to accrue throughout. See Watermark and Recovery . When to act on TRD ​ Depositing. TRD doesn't directly affect your deposit; new shares mint at Fundamental Value. But a deep negative TRD usually signals recent volatility that hasn't yet propagated through Cryptoswap. Hybrid Vault deposits also adjust the backing requirement when TRD is negative — see Hybrid Vaults . Withdrawing. Use Redemption Value, not Fundamental Value, to estimate what you'll receive. The two are usually aligned; if Redemption Value sits noticeably below Fundamental Value, a short wait (typically hours) usually closes most of the gap. Staked. TRD applies to your withdrawal the same way it applies to unstaked. If the staked side is also below its watermark, that's a separate, recoverable concern — see Watermark and Recovery . What to watch on the dashboard ​ Field What it tells you Fundamental PPS The vault's per-share accounting value. Redemption PPS The live withdraw quote per share. Market TRD The market-wide gap between Fundamental PPS and Redemption PPS. My TRD The gap as it applies to your position. For a field-by-field walkthrough, see Analytics . Related ​ Watermark and Recovery : why a staked position can sit below its high-water mark, a separate effect from TRD. Compounding Leverage : how LEVAMM tracks the oracle every block while Cryptoswap lags. Hybrid Vaults : the TRD-adjusted backing rule for deposits. Withdraw Liquidity : using Redemption Value to estimate what an exit returns. Oracle Design : where the oracle price behind Fundamental Value comes from and why it resists in-block manipulation. yb-LP Share Value Derivation : the math behind Fundamental and Redemption Value. The two values you'll see Example Why TRD appears TRD formula How TRD resolves Two distinct longer-term effects When to act on TRD What to watch on the dashboard Related ## /user/protocol/staked-vs-unstaked-economics On this page The staking decision is a trade. The two positions ​ Unstaked yb-LP Staked yb-LP How you earn PPS growth (fee-driven) YB emissions only (pro-rata within gauge) PPS growth claim Yes No — forfeited Forms the protocol's "real yield" layer Yes No Susceptible to watermark drawdown No Yes Transferable Yes (ERC-20) Not while staked (transferred into gauge) Where the value goes ​ Fee flow from LEVAMM and the Cryptoswap pool reaches LT.vy , which splits each increment between the staked and unstaked sides. The split follows a square-root admin-fee curve in the staking ratio: the more LPs stake, the larger the share routed to veYB and the smaller the share kept by unstaked holders. Fees and veYB Revenue carries the formula and the full reference table. As the staking ratio approaches 100%, the admin fee approaches 100% and unstaked returns diverge. The asymmetry is intentional, and it drives the self-balancing dynamic discussed below. The watermark, in brief ​ The staked side carries a watermark : the high-water value it has previously reached. When rebalance slippage outruns fees the staked value drops, but the watermark holds. Future profits route to the staked side first, restoring it to the watermark before any further admin fee is charged. That is what makes a staked drawdown recoverable rather than permanent. Watermark and Recovery covers the full mechanism; Dev: LT has the on-chain names ( staked , ideal_staked ). The worst-case scenario ​ The parameter set is tuned to avoid sustained negative APY; drawdown is treated as a parameter failure, not an expected outcome. The contract-level safety net protects you if the unusual sequence below does occur: Market conditions produce sustained rebalancing costs > fees (rare). Cumulative drag pulls staked below ideal_staked . You try to withdraw — your staked shares redeem for less than deposit, even with TRD = 0. YB emissions earned during the drawdown are your compensation for the wait. Parity returns when fees recover staked to ideal_staked . The loss is recoverable: Recovery Mode routes all admin-fee flow to the staked side until parity is restored. When to stake ​ You want YB emissions (direct yield) and have conviction that YB price × your gauge's vote weight compensates for (a) forfeited PPS growth and (b) watermark-drawdown tail risk. You intend to hold long-term; you can wait out a drawdown. You want veYB voting power via eventual YB accumulation and lock. When not to stake ​ You want a passive, non-emission-exposed hold. You need to rebalance or exit on short notice. You want to avoid exposure to YB tokenomics. Breakeven intuition ​ For a staked position to outperform an equivalent unstaked one over horizon T T T : YB_emissions_to_you ⏟ what staking pays ≥ PPS_growth_forfeited ⏟ what staking costs + E [ watermark drag ] ⏟ tail risk \underbrace{\text{YB\_emissions\_to\_you}}_{\text{what staking pays}} \;\geq\; \underbrace{\text{PPS\_growth\_forfeited}}_{\text{what staking costs}} \;+\; \underbrace{\text{E}[\text{watermark drag}]}_{\text{tail risk}} what staking pays YB_emissions_to_you ​ ​ ≥ what staking costs PPS_growth_forfeited ​ ​ + tail risk E [ watermark drag ] ​ ​ Where YB_emissions_to_you = weekly_gauge_emission × (your_staked / total_staked_in_gauge) × YB/USD . Gauge emission depends on: total YB mint rate (function of rate_factor ), your gauge's vote weight, and its sqrt(staked/total_supply) adjustment. veYB voting influences the vote weight — it does not give you a per-user multiplier. PPS growth forfeited is a near-deterministic yield you know you are giving up. Watermark drag is a tail: bounded,
프로젝트로 돌아가기