Skip to main content

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, LEVAMM fees, 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_assets or min_shares slippage 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() or Factory.emergency_admin() (Curve Emergency DAO) can kill a market, halting deposits and normal withdrawals. LT.emergency_withdraw remains open and removes balanced liquidity from the Curve pool. If your crvUSD share from the pool is smaller than your share of LEVAMM debt, you must supply the crvUSD difference from your wallet. emergency_withdraw can still revert on Remainder too small, an unpaid crvUSD shortfall, 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 and price_scale target.

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, staked falls below ideal_staked (while the gauge holds at least 0.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; YB emissions are their sole return.
  • YB price and gauge-weight risk: Declining YB prices 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 2×2\times 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 2×2\times.
  • Pooled debt and borrow rate: Each market borrows crvUSD as a single pooled debt inside LEVAMM with no individual borrower liquidation prices. YB DAO sets AMM.rate() (capped at 100% APR in code). Although LT donates collected borrow interest to the Curve pool as refueling, all yb-LP holders 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 2×2\times leverage math assumes crvUSD trades 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 crvUSD systemic 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 PythReportBank and can replace verifier() via set_verifier(). Any payload accepted by the verifier can discount swap fees and steer price_scale by up to one step per block.
    • Policy reverts: If the policy reverts, swaps, deposits, and normal withdrawals revert. LT.emergency_withdraw remains usable only if at least 500,000 gas remains before the policy callback.
    • crvUSD depeg distortion: Swap fees convert USD reports via AGGREGATOR() (no discount outside [$0.50, $2.00]), whereas the price_scale driver counts 1 crvUSD as $1, biasing the target by roughly the depeg size.
    • Kill or revive transitions: Killing or reviving a policy immediately changes swap fees and price_scale behavior.
    • LT deviation reverts: Deposits revert with "LT deviation" if added debt diverges from LEVAMM's debt-to-collateral ratio beyond ratio_tolerance() (capped at 10 bp in code).
    • Trend and jump fee trade-off: Discounting corrective swaps below fallback_fee captures more arbitrage edge in two-sided chop, but can earn less fee revenue than a flat fallback_fee during sustained one-way trends or sudden price jumps.

Hybrid Vault risks​

Using a Hybrid Vault introduces additional risks beyond direct LT deposits:

  • Paired stablecoin vault risk: Your crvUSD backing sits in an allowlisted ERC-4626 vault (such as scrvUSD). 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-market pool_limits(). Raising stablecoin_fraction() immediately increases required crvUSD backing for both existing and future positions.
  • Dynamic backing lock: Upward price moves increase the USD value of your open LP positions and restrict crvUSD withdrawals (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() and supportThreshold() 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, and YB emissions 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.

Report a vulnerability

To report a security vulnerability or concern, email [email protected].

Core architecture​

Audit #1: Statemind

Date: 24 February 2025 to 22 May 2025

Audit #2: ChainSecurity

Date: 7 July 2025

Audit #3: Quantstamp

Date: 1 April 2025 to 16 April 2025

Audit #5: Electisec

Date: 3 August 2025

Audit #6: Pashov

Date: 26 March 2025 to 1 April 2025

DAO contracts and security contest​

Audit #4: MixBytes

Date: 11 August 2025

Scope: DAO contracts

Sherlock Security Contest

Date: 1 August 2025 to 30 September 2025

Scope: Full protocol

Hybrid Vaults​

Audit #7: MixBytes

Date: 26 March 2026

Audit #8: ChainSecurity

Date: 26 March 2026

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)


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.