Yield Basis 백서

Yield Basis

원문

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

a cbBTC market owes 100M crvUSD while its LP tokens contain 92M crvUSD worth of the stable side. Unwinding the whole position frees 92M; someone has to buy the remaining 8M on the open market. The net-pressure oracle reports that 8M of buy pressure. A balanced market reads near zero. In simulations over 2021–2025 BTC data, the signal sits near zero most of the time and spikes during sharp crashes, which is when crvUSD liquidity depth matters most. Why a feedback controller instead of a gauge vote ​ Curve-style gauge votes are built for long-term emission steering and take days to move. Net pressure spikes in minutes. The response is a PID controller (proportional–integral–derivative), the same feedback loop used in cruise control: measure, compare to target, adjust, repeat. Each cycle, the controller: Measures pressure across a DAO-selected set of YieldBasis markets, normalised by their size. Measures the sink : how much liquidity is already staked in the target pool, using a flash-loan-resistant moving average. Computes the gap between the two and turns it into a crvUSD-per-second reward rate: it reacts to the current gap (proportional), remembers accumulated past gap (integral), and adds weight when pressure is rising fast (derivative). Anyone can call the update; the loop needs no keeper. Every parameter is DAO-tunable within hard-coded safety bounds. Where the incentives point ​ All incentives stream to one place: the crvUSD/pyUSD stableswap pool on Curve. Liquidity parked there deepens the crvUSD side of the market, so demand for crvUSD during imbalance windows clears without destabilising the peg. How you earn from it ​ Provide liquidity to the crvUSD/pyUSD pool on Curve . Stake the LP tokens in the FastGauge (an ERC-4626 vault over the LP token, with one-call helpers to add or remove liquidity), or follow the Merkl campaigns that surface the same incentive rate in a familiar claim interface. Rewards stream in crvUSD. The rate is spiky by design: it rises during imbalance windows and decays toward zero in calm periods. Quiet weeks can pay little or nothing, because the mechanism pays only while pressure exists. The FastGauge is not a Curve LiquidityGauge: it receives no CRV emissions, and no veYB or veCRV boost applies. Its only reward is the PID-driven crvUSD stream. Where the incentives come from ​ The FeeSplitter diverts a DAO-set share of YieldBasis admin fees (15% at activation; read split_fraction() for the live value) to the controller's reserve and forwards the rest to the veYB FeeDistributor. The reserve was seeded at activation with fees recovered from the deprecated BTC markets. Fees arrive as yb-LP tokens; the controller converts them to crvUSD through bounded, oracle-protected swaps. The reserve is the spending limit. When it runs low, the stream slows and stops: nothing reverts, and the protocol borrows nothing to keep paying. veYB holders give up that share of the weekly fee stream and get deeper crvUSD liquidity under the markets that generate the fees. Related ​ Hybrid Vaults : the other scaling lever — per-user crvUSD backing that raises deposit caps. Fees and veYB Revenue : the fee flow the net-pressure share is carved from. Dev: Net Pressure (PID) : contract-level reference for the six-contract system. What net pressure is Why a feedback controller instead of a gauge vote Where the incentives point How you earn from it Where the incentives come from Related ## /user/guides/provide-liquidity On this page Deposit flow from UI to on-chain. Prerequisites ​ Wallet with the volatile asset (e.g. BTC in WBTC, tBTC, etc. form) on the target chain. Small ETH for gas. Steps ​ Go to yieldbasis.com → Pools → select your market. Approve the asset for spend by the LT vault. Enter deposit amount. The UI previews: Shares received — based on current Fundamental Value. Effective cost basis — assets / shares at current PPS. Confirm. One transaction mints yb-LP to your wallet. Optional: use StakeZap via the "Deposit & Stake" button to mint-and-stake atomically. What happens on-chain ​ The vault pulls your asset from your wallet and an equal-value amount of crvUSD from the market's pre-allocated stablecoin pool. Both legs are added to the underlying Curve Cryptoswap pool, producing LP tokens which are held inside LEVAMM as collateral. The borrowed leg targets the 2× leverage the protocol maintains on every position — see Compounding Leverage . LEVAMM updates its position state. You receive yb-LP shares at the current Fundamental Value. For the dev-level call signatures and on-chain parameters, see Dev: Deposit & Withdraw and Action Flow: Deposit . What you hold after ​ Unstaked : ERC-20 yb-LP shares in your wallet. Staked (if via StakeZap): gauge receipt; yb-LP transferred into the gauge. Adding yb-LP to your wallet yb-LP shares are ERC-20s with symbols like yb-cbBTC or yb-WETH . Most wallets do not auto-detect them after deposit. Use your wallet's "Import token" feature with the yb-LP contract address from Contract Addresses if the balance doesn't appear. Related ​ yb-LP Tokens Stake yb-LP Withdraw Liquidity Action Flow: Deposit Prerequisites Steps What happens on-chain What you hold after Related ## /user/guides/withdraw-liquidity On this page How to withdraw — and how to interpret what the UI shows you. Steps ​ yieldbasis.com → Your Positions → Withdraw . Enter amount. The UI previews: Shares burned — derived from the live withdraw quote. Assets received — the live redemption value (what you'll receive). Confirm. Why you might receive less than Fundamental Value (PPS) × shares ​ Three distinct causes, all rare in normal operation. They're not the same thing; check which one you have. 1. Temporary Redemption Discount (TRD) ​ Cryptoswap and LEVAMM are slightly out of sync. You're unwinding through Cryptoswap, paying slippage. Will resolve on its own — hours in high-volume periods, longer in thin-arb conditions, as arbitrageurs close the gap. If you can wait, wait. Full explanation: Temporary Redemption Discount . 2. PPS drag (slow PPS growth) ​ Cumulative rebalance slippage has exceeded accrued fees for the period you held. PPS has grown — but less than your entry PPS × asset-price-change would suggest. The drag is embedded in the vault's accounting (PPS itself), not a redemption-side timing gap. Unstaked LPs: visible as PPS growth below the pool's fee rate. No "discount" to wait out — it's baked into PPS. Forward fees can outpace forward drag and resume PPS growth, but past drag is past. 3. Staked watermark shortfall ​ Applies only to staked positions. Your staked side ( staked ) is below its watermark ( ideal_staked ). Fees route preferentially to the staked side until parity. Will resolve when fees recover the gap. YB emissions during the wait are compensation. Full explanation: Watermark & Recovery . How to tell which one you're hitting ​ Use the dashboard. Each panel maps to one of the three causes above. 1. Is your position staked? No → skip to step 3. Yes → step 2. 2. Check the staked-side watermark. On the market detail page, the Plain PPS vs Watermark PPS chart shows the watermark above the current staked value when there's a shortfall. Watermark above current → watermark shortfall . Wait, or accept the discount. Watermark roughly equal to current → skip to step 3. 3. Compare Redemption PPS to Fundamental PPS (Market detail → Market details panel). Redemption below Fundamental (negative Market TRD) → TRD . Wait: typically hours, longer in thin-arb conditions. Re-check. Aligned → step 4. 4. Compare current Fundamental Value to your deposit's value adjusted by asset-price change. Value below expected → PPS drag . Structural for this period; no waiting fixes it. See Fundamental Value, Redemption Value, and TRD . Value at or above expected → the position is performing as designed; you may have a mental-model mismatch. Check How YieldBasis Works . The dev-level decision tree using direct contract reads ( LT.liquidity() , preview_withdraw , pricePerShare ) lives in Dev: Quote & Route . Quick reference table ​ Symptom Likely cause Resolution Redemption PPS below Fundamental PPS (negative Market TRD) TRD Wait (typically hours; longer depending on volume) Staked; watermark above current staked value on the market detail chart Watermark shortfall Wait; YB emissions are the compensation Unstaked; value below deposit even after a long hold and TRD is 0 PPS drag Structural — check Fundamental Value, Redemption Value, and TRD Staked; redeem below deposit, TRD ≈ 0, staked at watermark Mix of PPS drag + forfeited PPS growth Compare against YB emissions earned — may still be net positive in asset terms Related ​ Fundamental Value, Redemption Value, and TRD : the full mechanics behind TRD and PPS drag. Watermark and Recovery : the staked-side drawdown mechanism in full. Staked vs Unstaked Economics : the staking decision as a trade. Analytics : every field on the analytics page explained. Action Flow: Withdraw : the on-chain withdraw sequence and event flow. Steps Why you might receive less than Fundamental Value (PPS) × shares 1. Temporary Redemption Discount (TRD) 2. PPS drag (slow PPS growth) 3. Staked watermark shortfall How to tell which one you're hitting Quick reference table Related ## /user/guides/stake-yb-lp On this page Staking flow and what changes about your position when you do. Before you stake ​ Read Staked vs Unstaked Economics . The decision materially changes your return profile: Staked positions earn only YB emissions. They do not accrue the unstaked side's Fundamental Value (PPS) growth. Watermark drawdown is real (recoverable, but temporary hits below deposit value are possible). Read Watermark & Recovery before staking a significant amount. If you need to exit or rebalance on short notice, watermark drawdown can leave you redeeming below deposit. Only stake capital you can leave for the recovery window. Steps ​ yieldbasis.com → Your Positions . Click Stake . Approve yb-LP for the LiquidityGauge (one-time per market). Enter amount. Confirm. Or: at deposit time, use "Deposit & Stake" ( StakeZap ) to do both in one transaction. What happens on-chain ​ yb-LP.transfer(gauge, amount) → gauge calls LT hook. LT updates staked , ideal_staked , staked_tokens in the liquidity struct. Gauge mints receipt shares to your address (1:1 with staked yb-LP). How emissions accrue ​ Within a gauge, YB emissions distribute pro-rata to stakers by staked balance. There is no per-user veYB boost on top of your pro-rata share — veYB power is exercised at the vote-weight level (it determines how much emission the gauge as a whole receives, via GaugeController ). Two influences on your personal emission flow: Your gauge's adjusted_weight = raw_weight × sqrt(staked / total_supply) — rises with the gauge's total staking adoption. See Gauges & Emissions . Your staked share within the gauge — purely pro-rata by staked yb-LP balance. If you want to grow the emission share of your gauge, vote veYB for it. See Lock YB for veYB and Vote for Gauges . Accrued YB emissions are claimed from the market's Token Yield → Claim Rewards tab: Related ​ Unstake yb-LP Staked vs Unstaked Economics Watermark & Recovery Dev: LiquidityGauge Dev: StakeZap Before you stake Steps What happens on-chain How emissions accrue Related ## /user/guides/unstake-yb-lp On this page Unstake flow. Claim YB before or after unstaking — either works. Steps ​ yieldbasis.com → Your Positions → Unstake . Enter amount. Confirm. yb-LP returns to your wallet. To claim YB without unstaking: Claim Rewards on the same page. What happens on-chain ​ Gauge burns your receipt shares. LT updates staked , ideal_staked , staked_tokens . claimable_tokens(you) reflects unclaimed YB (Minter handles the mint). When to unstake ​ You want to sell/transfer the yb-LP. You want to withdraw the underlying (unstake first, then withdraw). You want to rebalance between markets. Related ​ Stake yb-LP Withdraw Liquidity Dev: LiquidityGauge Steps What happens on-chain When to unstake Related ## /user/guides/lock-yb-for-veyb On this page Lock YB for up to 4 years (or infinite) → veYB NFT → governance + gauge direction + fee revenue. Longer lock and more YB locked = more voting power. Infinite lock has no decay; term locks decay linearly to zero at unlock. Steps ​ Acquire YB (LP emissions, secondary market, or vesting). Go to yieldbasis.com → Lock . Choose amount + lock duration. Options: 1 week to 4 years — linear decay of voting power toward zero at unlock. Infinite lock — constant maximum voting power; no decay. Toggleable later if governance-vote allocation is zero. Confirm. You receive a veYB NFT representing the lock. What you gain ​ Voting power on proposals — Aragon-style Ownership and Parameter proposals. See Proposals . Gauge-weight voting — allocate YB emissions across markets via gauge voting. See Vote for Gauges . Your vote determines how much emission each gauge (as a whole) receives. Fee revenue — weekly distribution via FeeDistributor.vy with 4-week smoothing. Fees paid in epoch n n n distribute across n + 1 n+1 n + 1 to n + 4 n+4 n + 4 . Infinite lock trade-off ​ No decay, no unlock ever. You commit the locked YB permanently. Max voting power always. Slope = 0 in VotingEscrow accounting. Transferable under strict merge semantics: to another holder who also has an infinite lock (or a max-duration lock ending in the same week), and only if you currently have zero gauge-vote allocation (checked by the protocol). Cannot be withdrawn back to YB. The YB is permanently committed. Related ​ veYB Vote for Gauges Dev: VotingEscrow Steps What you gain Infinite lock trade-off Related ## /user/guides/vote-for-gauges On this page How to vote, cooldowns, and what your vote does. Steps ​ Hold veYB (see Lock YB for veYB ). yieldbasis.com → Governance → Gauges . Allocate your voting power across gauges. Total ≤ 100%. Confirm. Your vote takes effect immediately — gauge weights update in real time, no epoch delay. Cooldown ​ Per-gauge re-vote cooldown: 10 days (864,000 seconds). You can adjust across different gauges freely within that window; you cannot re-vote the same gauge more frequently. Purpose: prevents rapid flip-flopping that would destabilise emission routing and blunts vote-buying games around single epochs. What the vote does ​ Determines each gauge's raw share of weekly YB emission. Raw weight sums over all voters' user_weights × veYB_balance_at_vote_time . Feeds into the adoption-adjusted weight via adjusted_weight = raw_weight × sqrt(staked / lt_total_supply) . A gauge with low staking participation gets less than its vote share would suggest. This is an adoption incentive, not an IL hedge. See Gauges & Emissions . Carries over week-to-week until changed. You do not need to re-vote every epoch to maintain your position. Your vote's weight is proportional to your current veYB balance. Infinite locks (no decay) have steady weight; term locks weight less as their end approaches. If a gauge is deprecated or killed ​ Markets get deprecated. When a market is wound down, governance kills its gauge (deprecated markets carry a Deprecated badge in Analytics ). Killing changes what you can do with your vote: You can't add or increase weight on it. A vote with any weight above zero reverts with Killed , and the Gauges page won't let you allocate to it. Your existing vote does not move on its own. Killing a gauge does not zero your weight. Whatever you allocated stays parked there. Move weight off killed gauges. Stakers leave a deprecated market, so its emissions fall toward zero and your vote there earns nothing. What to do: set that gauge's weight to 0 to release it, then allocate the freed power to a live gauge. A weight of 0 is allowed on a killed gauge — the block only applies to positive weights. The 10-day cooldown still applies, so if you voted on that gauge within the last 10 days, wait out the remainder before zeroing it. tip You can't transfer or move your veYB while any voting power is still allocated — including weight parked on a killed gauge. Zero out every vote first. Why you need to revisit your votes ​ Re-check your allocation periodically: Killed or deprecated gauges trap your weight. Move it off as markets retire (above). Term-lock weight decays. Your vote weight tracks your veYB, and a term lock's veYB falls as it nears expiry — your influence shrinks with it and reaches zero when the lock ends. Extend or re-lock, then re-vote, to restore it. Permalocks don't decay. New gauges get added. New markets launch with their own gauges. Your existing allocation doesn't include them; re-vote if you want to back them. Adoption shifts. A gauge's emission share scales with how much of its market is staked ( sqrt(staked / supply) ). If a gauge you backed loses stakers, your weight there routes fewer emissions — reallocating to active gauges keeps your vote productive. Related ​ veYB Gauges & Emissions Emission Dynamics Dev: GaugeController Steps Cooldown What the vote does If a gauge is deprecated or killed Why you need to revisit your votes Related ## /user/guides/use-hybrid-vaults On this page Step-by-step from create-vault to multi-pool holder. For the mechanism (why backing-gated access scales YB and helps the crvUSD peg), see Hybrid Vaults (concept) . Hybrid-enabled markets carry a Hybrid badge in the markets list: 1. Create your vault ​ yieldbasis.com → Hybrid → Create Vault . Confirm the deployment transaction (one-time, deploys your per-address minimal proxy via HybridVaultFactory ). Select an ERC-4626 backing vault — scrvUSD by default, plus any other allow-listed crvUSD-denominated vaults. Governance can allow-list multiple options (via set_allowed_crvusd_vault ); pick the yield/risk profile you want for your backing. Only allow-listed vaults appear in the UI. 2. Deposit crvUSD backing ​ Approve crvUSD for spending by your HybridVault. Call deposit_crvusd(amount) . The vault auto-deposits into your chosen scrvUSD vault. Your backing balance now earns the scrvUSD savings yield while unlocking YB pool access. 3. Deposit into a YB pool ​ The vault enforces a stablecoin fraction (governance-adjustable; 45% since the June 2026 vote). For every $100 of crypto deposited into a YB pool, $45 of crvUSD backing is required at that fraction. In the UI, pick a market (BTC/crvUSD, ETH/crvUSD, etc.). Enter deposit amount. The UI shows: LT shares received (from preview_deposit ). crvUSD required for this position (additional backing needed, if any). Option to auto-stake into the pool's gauge for YB emissions. Confirm. If your scrvUSD balance covers the new requirement, no additional deposit is needed. Otherwise the UI prompts you to top up with deposit_stablecoins=True . A HybridVault can hold up to 16 simultaneous pool positions ( MAX_VAULTS ). 4. Monitor ​ The dashboard shows, for each position: LT value — your position's value in the YB pool. Redemption value (via preview_withdraw ) — what you'd receive now. Staking status — whether LT shares are staked in the gauge. Pending emissions — claimable YB for staked positions. Vault-wide backing — total scrvUSD balance, required backing, excess backing, withdrawable crvUSD. The dashboard shows TRD directly per market. For the formula and what TRD means, see Fundamental Value, Redemption Value, and TRD . 5. Stake / unstake ​ Can happen at deposit time (using the stake-at-deposit option) or any time after: Stake — move your LT shares into the gauge to earn YB emissions pro-rata. Unstake — move shares back to your LT position. Emi
프로젝트로 돌아가기