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.
| Network | Ethereum |
|---|---|
| Input token | One asset per market: WBTC, cbBTC, tBTC or WETH |
| Position token | The market's yb-token (yb-WBTC, yb-cbBTC, yb-tBTC, yb-WETH), ERC-20, 18 decimals |
| Enter | Approve the asset, then one call on the deposit zap (section 3) |
| Exit | One call on the yb-token itself, no approval (section 4). Returns the same asset |
| Yield | In the yb-token price, denominated in the asset. No claim step in the default (unstaked) variant |
| Suggested yield ID | ethereum-yb-wbtc-0x651d4b8168488fa163d85304662e8278d4c55baa-yieldbasis (your scheme, of course) |
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.
| Market | Asset (input) | yb-token (position) | Gauge (staked variant only) |
|---|---|---|---|
| WBTC · 7 | 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 | 0x651D4b8168488FA163D85304662E8278d4c55BAa | 0xAa0b1d265F23972eafB7d088e963BD31403A58F5 |
| cbBTC · 8 | 0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf | 0x722FC3640BA007C3E9867CCdB0dCa59F2e2F29F9 | 0xF8764cBcdb15a9E4c7CA1b0b8a578d9ebEEC1b6f |
| tBTC · 9 | 0x18084fbA666a33d37592fA2633fD49a74DD93a88 | 0x771F7290428d830ECd41E980745c327e507823Ec | 0xe83D888FE3213DD3471DE0bC1957E0f94F038483 |
| WETH · 10 | 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 | 0x2B9c9f3BdcEb5d8E36a4704F08a78Fca53343cEa | 0xd829456FD63Ada7DE0657714A3A7A26DE403E3D8 |
Shared contracts:
0xF3a2bf354C28a1e0C84033f3ba3379e223F56E6A0xE862bC39B8D5F12D8c4117d3e2D493Dc20051EC60x370a449FeBb9411c95bf897021377fe0B7D100c0, markets(i) returns asset, Curve pool, AMM, yb-token, oracle, virtual pool, gaugeBoth 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.
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:
| Market | Room, USD | Room, 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.
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:
asset.approve(LTDepositZap, assets)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.
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.
yb_token.balanceOf(user), 18 decimals.yb_token.pricePerShare(), 18 decimals for every market. This is the book value, and it grows as trading fees come in. It started at 1.0 for each market.preview_withdraw(shares), in the asset's own decimals (8 for WBTC and cbBTC, 18 for tBTC and WETH). It can be a little above or below the book value, depending on the pool's balance at that moment. The difference is the Temporary Redemption Discount (TRD), explained in the deposit and withdraw guide. A deposit made while the discount is negative receives correspondingly more yb-tokens.pricePerShare() over time, in the asset (so a WBTC depositor's balance grows in BTC). For ready-made daily series, the public API has https://api.yieldbasis.com/v1/analytics/markets/trading-apy (fee-based yield of the yb-token) and …/token-apr (YB emissions of the staked variant); values are strings scaled by 1e18 and keyed by marketId 7 to 10.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:
stake = true. The user receives gauge shares (for example g(yb-WBTC)); preview_deposit(…, true) quotes them.gauge.preview_claim(YB, user) and gauge.claim(). YB token: 0x01791F726B4103694969820be083196cC7c045fF.StakeZap.withdraw_and_unstake(gauge, shares, min_assets, receiver).For a simple first listing, the unstaked variant alone (sections 3 to 5) is enough.
All on Ethereum mainnet, with read calls and simulated transactions (eth_call) from a test address, no funds moved:
| Market | Simulated deposit | Unstaked | Staked |
|---|---|---|---|
| WBTC | 0.1 WBTC | passed, 0.1000 yb-WBTC | passed, 0.1010 g(yb-WBTC) |
| cbBTC | 0.1 cbBTC | passed, 0.1053 yb-cbBTC | passed, 0.1067 g(yb-cbBTC) |
| tBTC | 0.1 tBTC | passed, 0.1006 yb-tBTC | passed, 0.1012 g(yb-tBTC) |
| WETH | 3 WETH | passed, 2.8614 yb-WETH | passed, 3.0106 g(yb-WETH) |
POLICY(), is_killed() = false), which is why the zap is the recommended entry.yb-WETH.deposit with a price-based debt reverted with LT deviation, as expected.version() = v3.0.0 on their pools). Indices 0 to 6 are earlier versions and are not part of this integration.Happy to answer any question, run a test on your side's fork or walk through a first deposit together.