Risks and audits
Providing leveraged liquidity on YieldBasis exposes your capital to smart contract, leverage, stablecoin, oracle, governance, and asset risks. Review every risk category and security audit report below before depositing.
Smart contract and technical risks
Immutable core contracts
Core YieldBasis contracts (Factory, LT, AMM, VirtualPool, CryptopoolLPOracle) are immutable and cannot be upgraded. Undiscovered bugs, edge cases, or novel exploits can cause partial or total loss of funds.
- Parameter updates (borrow rates, minimum admin fees,
LEVAMMfees, allocations) require YB DAO proposals, while veYB holders direct gauge weights. - Pool policies are external contracts called by v3 Curve Cryptoswap pools. After initial deployment, only a Curve DAO ownership vote can attach, replace, or remove a pool's policy.
- Confirmed Ethereum transactions are irreversible. Always verify addresses against Contract addresses and set realistic
min_assetsormin_sharesslippage bounds.
Scoped kill switches and emergency exits
YieldBasis has no protocol-wide pause. Instead, individual markets and oracle-report policies have scoped kill switches:
- Market kill switch (
LT.set_killed):Factory.admin()orFactory.emergency_admin()(Curve Emergency DAO) can kill a market, halting deposits and normal withdrawals.LT.emergency_withdrawremains open and removes balanced liquidity from the Curve pool. If yourcrvUSDshare from the pool is smaller than your share ofLEVAMMdebt, you must supply thecrvUSDdifference from your wallet.emergency_withdrawcan still revert onRemainder too small, an unpaidcrvUSDshortfall, or a failed policy callback if fewer than 500,000 gas remained before the callback. - Policy kill switch (
YBOraclizedPolicy.set_killed): YB DAO or Curve Emergency DAO can kill a policy so the pool falls back to its native fee curve andprice_scaletarget.
Leverage and rebalancing risks
Temporary Redemption Discount (TRD)
Withdrawals execute against live Curve pool balances. During rapid price moves or heavy imbalanced flow, Redemption Value (LT.preview_withdraw) can fall below Fundamental Value (LT.pricePerShare()), creating a negative TRD. Withdrawing during a negative TRD realizes that discount as a loss, and TRD has no guaranteed recovery timeframe. See TRD and pricing.
Unstaked LP risk (PPS drag)
Maintaining 2× leverage incurs ongoing rebalancing costs (volatility decay) in choppy markets, and the underlying Curve Cryptoswap pool still faces stale-price arbitrage costs (Loss-Versus-Rebalancing / LVR) when external prices move. If combined rebalancing and arbitrage costs (after refueling donations) exceed trading-fee income, Fundamental Value grows more slowly or declines (PPS drag). Recovery requires future trading fees to exceed future costs.
Staked LP risk (watermark shortfall and emissions)
Staking yb-LP in a LiquidityGauge changes your return and loss profile:
- Below the watermark: If rebalancing losses outrun fees,
stakedfalls belowideal_staked(while the gauge holds at least0.01 yb-LP,MIN_STAKED_FOR_FEES). Staked shares can redeem for less than their value when staked until future fee gains close the shortfall. - No Fundamental Value growth: Staked positions forfeit unstaked
pricePerShare()growth;YBemissions are their sole return. - YB price and gauge-weight risk: Declining
YBprices or lower veYB gauge votes can leave emissions worth less than forfeited Fundamental yield and watermark exposure.
Rebalancing, flash-loan, and borrow-rate risks
External arbitrageurs maintain leverage by trading against LEVAMM via VirtualPool, which borrows crvUSD from Factory.flash().
- Volatility, gas spikes, or flash-loan disruption: High gas fees, thin external liquidity, or a paused/illiquid flash lender can delay arbitrage and let effective leverage drift from .
- Pooled debt and borrow rate: Each market borrows
crvUSDas a single pooled debt insideLEVAMMwith no individual borrower liquidation prices. YB DAO setsAMM.rate()(capped at 100% APR in code). AlthoughLTdonates collected borrow interest to the Curve pool as refueling, allyb-LPholders share pooled position losses proportionally.
Underlying asset and wrapper risks
A yb-LP position keeps full price exposure to BTC or ETH, up and down—you bear the full USD downside of price declines. Wrapped BTC markets (WBTC, cbBTC, tBTC) also carry custodian or bridge risk. Markets are isolated, so a depeg or insolvency in one wrapper hits LPs in that market directly without contaminating other markets.
crvUSD peg and Curve Finance risks
YieldBasis relies directly on Curve Finance infrastructure: underlying liquidity sits in Curve Cryptoswap pools, every market's debt is denominated in crvUSD, and LP valuation uses Curve's crvUSD/USD aggregator.
- Peg fluctuations: The leverage math assumes
crvUSDtrades near $1.00. Moderate peg deviations distort effective leverage and valuation; a severe or permanent depeg causes direct losses proportional to its magnitude and direction. - Curve governance: Curve DAO parameter changes, pool issues, or
crvUSDsystemic failures affect YieldBasis markets directly, and YB DAO has no control over Curve infrastructure.
Oracle, report-bank, and pool policy risks
CryptopoolLPOracle risk
LEVAMM relies on CryptopoolLPOracle, which computes LP value from POOL.virtual_price(), POOL.price_scale(), and Curve's crvUSD/USD aggregator (AGG). Factory verifies that AGG.price() lies strictly inside ($0.90, $1.10) only at initialization or set_agg(), and CryptopoolLPOracle has no staleness check. Because price_scale steps at most once per block, it resists single-block flash loans but lags rapid spot moves. If AGG or pool state becomes corrupted, LEVAMM can misprice collateral or execute unfavorable rebalances.
Pool policy and PythReportBank risks
Check Contract addresses or call POLICY() on a pool to inspect its active policy:
- On a pool running
YBTwocryptoPolicy: The policy reads only internal pool prices, keeps the native fee curve, and has no owner, setters, or kill switch. - On a pool running
YBOraclizedPolicy: The policy introduces trust assumptions on Pyth Pro (Pyth Lazer) signers and YB DAO:- Bad reports or verifier replacement: YB DAO owns
PythReportBankand can replaceverifier()viaset_verifier(). Any payload accepted by the verifier can discount swap fees and steerprice_scaleby up to one step per block. - Policy reverts: If the policy reverts, swaps, deposits, and normal withdrawals revert.
LT.emergency_withdrawremains usable only if at least 500,000 gas remains before the policy callback. crvUSDdepeg distortion: Swap fees convert USD reports viaAGGREGATOR()(no discount outside [$0.50, $2.00]), whereas theprice_scaledriver counts 1crvUSDas $1, biasing the target by roughly the depeg size.- Kill or revive transitions: Killing or reviving a policy immediately changes swap fees and
price_scalebehavior. LT deviationreverts: Deposits revert with"LT deviation"if added debt diverges fromLEVAMM's debt-to-collateral ratio beyondratio_tolerance()(capped at 10 bp in code).- Trend and jump fee trade-off: Discounting corrective swaps below
fallback_feecaptures more arbitrage edge in two-sided chop, but can earn less fee revenue than a flatfallback_feeduring sustained one-way trends or sudden price jumps.
- Bad reports or verifier replacement: YB DAO owns
Hybrid Vault risks
Using a Hybrid Vault introduces additional risks beyond direct LT deposits:
- Paired stablecoin vault risk: Your
crvUSDbacking sits in an allowlisted ERC-4626 vault (such asscrvUSD). Smart contract bugs, yield changes, or withdrawal limits in that vault affect your Hybrid Vault position. - Governance parameter changes: YB DAO can update
HybridVaultFactory.stablecoin_fraction()and per-marketpool_limits(). Raisingstablecoin_fraction()immediately increases requiredcrvUSDbacking for both existing and future positions. - Dynamic backing lock: Upward price moves increase the USD value of your open LP positions and restrict
crvUSDwithdrawals (Not enough crvUSD left) until you close enough LP shares or add backing. LP share withdrawals (withdraw_stablecoins = False) and staking conversions are not blocked by the backing ratio.
Governance and regulatory risks
- No timelock: YB DAO proposals that meet
minParticipation()andsupportThreshold()execute immediately with no timelock delay. Concentrated veYB voting power increases governance centralization risk. - Regulatory and tax risk: DeFi regulations vary by jurisdiction and change over time. You are solely responsible for understanding the legal and tax treatment of
yb-LP,veYB, andYBemissions in your jurisdiction.
Security audits
YieldBasis smart contracts underwent 10 independent security audits and reviews plus a public Sherlock security contest. An audit never eliminates smart contract risk, and a published report does not imply every finding was remediated—review each report directly.
To report a security vulnerability or concern, email [email protected].
Core architecture
DAO contracts and security contest
Sherlock Security Contest
Date: 1 August 2025 to 30 September 2025
Scope: Full protocol
Hybrid Vaults
FeeDistributor, AMM/LT hardening, and YBLendingOracle
Audit #9: Firepan AI Audit
Date: 23 April 2026 to 26 April 2026
Scope: FeeDistributor

Audit #10: ChainSecurity
Date: 24 July 2026
Scope: AMM and LT hardening, YBLendingOracle, YBPriceProxy (delta review)
Related
- Contract addresses: Ethereum mainnet addresses of audited contracts.
- TRD and pricing: Fundamental Value, Redemption Value, and TRD mechanics.
- Oracles and MEV:
CryptopoolLPOracle,YBOraclizedPolicy, andPythReportBank. - veYB and governance: DAO voting thresholds and separation of powers.
Disclaimer
The information provided within this document does not constitute financial, legal, or tax advice personalised to individual circumstances. It is for informational purposes only and should not be relied upon as a substitute for professional advice. The protocol is provided "as is" without warranties of any kind, and users engage with YieldBasis entirely at their own risk.
Users are strongly encouraged to seek advice from qualified professionals regarding financial, legal, and tax matters before engaging with YieldBasis. Past performance is not indicative of future results, and users may lose some or all of deposited capital. Only deposit funds you can afford to lose, and carefully consider your risk tolerance, financial situation, and investment objectives before participating in leveraged liquidity provision.

