Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How It Works

Tapir uses three steps to separate loss exposure from a yield-bearing position. A loss in the underlying asset's value, whatever its cause, is settled as a depeg when the oracle's final closing price at maturity is below its high watermark.

1. Split the base asset

During a pool's ACTIVE period, depositing 1 base-asset unit creates 0.5 DP + 0.5 YB. Amounts are accounted for in the base asset's smallest units; an odd input rounds down to an even amount.

Token
Role

DP — Depeg Protected

The risk-protected claim. Receives additional base-asset units at resolution if the oracle records a qualifying depeg at maturity, subject to the cap

YB — Yield Boosted

The first-loss claim. Gives up collateral to DP in that event, in exchange for the economics of selling protection

The base asset remains in the pool. Its yield-bearing economics remain in the backing; DP and YB do not each receive a second copy of the yield. Returns depend on the entry price, fees, asset performance, and settlement.

2. Trade your exposure

Trade DP for YB, or YB for DP, on the market's AMM. Selling YB to acquire more DP increases protection exposure; selling DP to acquire YB increases first-loss exposure. The exchange rate is market-priced.

You can also provide concentrated liquidity to earn swap fees. Trading and execution depend on available liquidity, slippage limits, and whether the AMM is paused. An equal pair of DP and YB can be recombined into the base asset while the pool is ACTIVE, subject to its fee and pause state.

3. Resolve, then redeem

Expiry starts COOLDOWN, rather than immediate redemption. The configured oracle submits a high watermark and resolution price. Once cooldown and minimum price age have passed, anyone can call resolvePriceDepeg(). The pool then enters REDEMPTIONS and holders can redeem each token independently.

  • No recorded depeg: each DP and YB redeems for 1 base-asset unit before fees.

  • Recorded depeg: DP's redemption rate rises, up to 2 base-asset units per DP; YB's rate falls by the same amount, down to zero. The two rates sum to 2.

The cap can offset an oracle-measured decline of up to 50% before fees and entry premiums, assuming the pool's collateral remains available. Protection pays only on the loss in the configured oracle's final closing price at maturity. If a dip recovers before maturity and the final closing price is back at its high watermark, DP redeems for nothing extra. The closing price uses the oracle's last checkpoints, which are not forced to stop exactly at maturity. A temporary discount, withdrawal delay, or loss the oracle does not capture need not produce a payout either.

Oracle preparation and submission depend on authorised operators. Admin controls, pauses, manual backup paths, and data availability can affect settlement. See Oracle Resolution, Redeem, and the Core V1 lifecycle specification.

Last updated