Yield Basis × Yield.xyz – integration guide for BTC and ETH deposits

Ethereum mainnet · four markets: WBTC, cbBTC, tBTC, WETH · addresses read from the Yield Basis Factory and every flow simulated on-chain on 23 November 2026, 20:43–20:49 UTC (blocks 26,480,293–26,480,328)

Hi team – this page puts everything needed to list Yield Basis in one place, so it can be wired into the Earn API without digging through the protocol docs.

In short: the user deposits one asset (WBTC, cbBTC, tBTC or WETH) and receives a yb-token (for example yb-WBTC). The token's value is tracked in the asset itself and grows with trading fees. The protocol borrows the matching crvUSD on its own side, so the user brings only the asset and never holds debt. Enter and exit are one transaction each, with no cooldown, queue or lock.

All four markets now have plenty of room for new deposits (section 2), so this is a good moment to go live.

1 · Availability

NetworkEthereum
Input tokenOne asset per market: WBTC, cbBTC, tBTC or WETH
Position tokenThe market's yb-token (yb-WBTC, yb-cbBTC, yb-tBTC, yb-WETH), ERC-20, 18 decimals
EnterApprove the asset, then one call on the deposit zap (section 3)
ExitOne call on the yb-token itself, no approval (section 4). Returns the same asset
YieldIn the yb-token price, denominated in the asset. No claim step in the default (unstaked) variant
Suggested yield IDethereum-yb-wbtc-0x651d4b8168488fa163d85304662e8278d4c55baa-yieldbasis (your scheme, of course)

2 · The four markets

These are the current markets (indices 7 to 10 in the Factory). Each address below was read live from Factory.markets(i) and matches the official address list.

MarketAsset (input)yb-token (position)Gauge (staked variant only)
WBTC · 70x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C5990x651D4b8168488FA163D85304662E8278d4c55BAa0xAa0b1d265F23972eafB7d088e963BD31403A58F5
cbBTC · 80xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf0x722FC3640BA007C3E9867CCdB0dCa59F2e2F29F90xF8764cBcdb15a9E4c7CA1b0b8a578d9ebEEC1b6f
tBTC · 90x18084fbA666a33d37592fA2633fD49a74DD93a880x771F7290428d830ECd41E980745c327e507823Ec0xe83D888FE3213DD3471DE0bC1957E0f94F038483
WETH · 100xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc20x2B9c9f3BdcEb5d8E36a4704F08a78Fca53343cEa0xd829456FD63Ada7DE0657714A3A7A26DE403E3D8

Shared contracts:

Both zaps are verified on Etherscan and were deployed by the Yield Basis deployer 0xa39E4d6bb25A8E55552D6D9ab1f5f8889DDdC80d; the zaps hold no funds and no admin rights between transactions.

Room for new deposits right now

A market accepts deposits while its position value stays under half of the crvUSD it can borrow (AMM.max_debt() / 2). Snapshot at block 26,480,300:

MarketRoom, USDRoom, in the asset
WBTC$29.6M~479 WBTC
cbBTC$14.3M~232 cbBTC
WETH$14.4M~8,280 WETH
tBTC$4.5M~73 tBTC

Live check for any amount: LTDepositZap.preview_deposit(yb_token, assets, False) succeeds while there is room. A deposit above the room reverts with Debt too high, so you can map that string to a "market full" status.

3 · Entering

Use the deposit zap. It computes the crvUSD debt for the deposit inside the transaction, which the pools require since they moved to oracle pricing in October and November 2026. Two transactions:

  1. asset.approve(LTDepositZap, assets)
  2. LTDepositZap.deposit(yb_token, assets, min_shares, receiver, False)

min_shares is the slippage bound: quote LTDepositZap.preview_deposit(yb_token, assets, False) in the same block and take, for example, 99.9% of it. The call returns the yb-tokens minted to receiver.

// ABI fragments
function preview_deposit(address lt, uint256 assets, bool stake) view returns (uint256)
function calc_debt(address lt, uint256 assets) view returns (uint256)
function deposit(address lt, uint256 assets, uint256 min_shares, address receiver, bool stake) returns (uint256)

// ethers v6
const quote = await zap.preview_deposit(ybToken, assets, false);
await asset.approve(ZAP, assets);
await zap.deposit(ybToken, assets, quote * 999n / 1000n, user, false);

Please do not call yb_token.deposit(assets, debt, …) directly with a debt taken from the price. That function exists, but on all four markets the pool now checks that the debt matches the market's own debt ratio within a tight tolerance. A debt computed as assets × price misses it and reverts with LT deviation; we confirmed this on-chain for WETH. The zap solves this for you. If you prefer to build the debt yourselves, the procedure is in the official deposit guide.

Also, the four Curve pools behind these markets (for example WBTC/crvUSD 0x3136…729A) belong to Yield Basis: more than 99.9% of their LP is held by the protocol. They should not be listed as ordinary Curve LP yields; the yb-tokens on this page are the product.

4 · Exiting

One call on the yb-token, no approval needed:

function preview_withdraw(uint256 shares) view returns (uint256)   // asset out, in asset decimals
function withdraw(uint256 shares, uint256 min_assets, address receiver) returns (uint256)

const out = await ybToken.preview_withdraw(shares);
await ybToken.withdraw(shares, out * 999n / 1000n, user);

The user gets the asset back (WBTC, cbBTC, tBTC or WETH) in the same transaction. Withdrawals are always open while the market is live.

5 · Valuing a position and showing yield

6 · Optional staked variant

A yb-token can be staked in its market's gauge to earn YB token emissions instead of the trading-fee growth. The two rates should not be added together. If you want to offer it as a second yield per market:

For a simple first listing, the unstaked variant alone (sections 3 to 5) is enough.

7 · What we checked

All on Ethereum mainnet, with read calls and simulated transactions (eth_call) from a test address, no funds moved:

MarketSimulated depositUnstakedStaked
WBTC0.1 WBTCpassed, 0.1000 yb-WBTCpassed, 0.1010 g(yb-WBTC)
cbBTC0.1 cbBTCpassed, 0.1053 yb-cbBTCpassed, 0.1067 g(yb-cbBTC)
tBTC0.1 tBTCpassed, 0.1006 yb-tBTCpassed, 0.1012 g(yb-tBTC)
WETH3 WETHpassed, 2.8614 yb-WETHpassed, 3.0106 g(yb-WETH)

8 · References


Happy to answer any question, run a test on your side's fork or walk through a first deposit together.