> For the complete documentation index, see [llms.txt](https://docs.tapir.money/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tapir.money/system-workflow/buy.md).

# Buy & Sell

Buying & selling DP and YB tokens

The **Buy & Sell** screen lets you trade DP or YB directly against the market's AMM pool using the base asset. This is how you shift your exposure beyond the even 50/50 you get from the **Split** screen.

***

### **How the screen works**

1. Pick the token — **DP** (risk-protected) or **YB** (boosted yield). Each shows its current APY.
2. Pick the direction — **Buy** (pay base asset, receive the token) or **Sell** (return the token, receive base asset).
3. Enter an amount. Before you commit, the panel shows:
   * **Exchange rate** — the live conversion rate for the selected direction.
   * **Swap fee** — the market's current AMM fee.
   * **Implied APY** — the effective yield of the position at this price.
   * **"You will receive"** — the quoted output, with a USD estimate.
4. Review price impact — on larger trades relative to pool liquidity, the quote degrades; if no executable quote exists, the button disables with "Insufficient liquidity."
5. Confirm. Slippage tolerance and transaction deadline are adjustable in the settings.

**APY is annualized, not the return over the pool’s remaining term.** For illustration, a 10% APY over 90 days corresponds to about 2.38% growth if that rate is realized throughout the period. The actual DP/YB outcome also depends on the quote, fees, underlying performance, and depeg settlement. See [Implied APY](https://docs.tapir.money/protocol-mechanics/tapir-mechanics/amm.md#implied-apy) for the assumptions and calculation.

A historical performance chart on the same screen shows how the token has traded over the pool's life.

***

### **What happens under the hood**

The router bundles the steps into one transaction:

* **Buying DP:** your base asset is split into 0.5 DP + 0.5 YB, and the YB leg is swapped for more DP. Buying 10 base might return \~9.9 DP — DP typically trades at a premium, which is the cost of protection.
* **Buying YB:** the mirror image — the DP leg is swapped for more YB, so you typically receive more than 1 YB per base. The discount is your compensation for taking on depeg risk.
* **Selling:** part of your tokens are swapped to balance the pair, and the equal DP+YB pair is unsplit back into the base asset, less the pool's redemption fee. Any unmatched DP or YB is returned to you.

***

### **Choosing your risk profile**

You choose your exposure by what you hold. Router buy/sell flows require an Active, unpaused pool and sufficient AMM liquidity:

* **Mostly DP (protection-seeking):** you believe the asset carries meaningful depeg risk and want protection while keeping base yield. Buy DP with base asset, or split, sell your YB back to base, and buy DP.
* **Mostly YB (yield-seeking):** you believe a depeg is unlikely and want maximum returns. Buy YB with base asset, or split, sell your DP back to base, and buy YB.
* **Balanced:** simply **Split** — you hold both sides and preserve a combined claim on the base amount before fees. You still bear changes in the base asset's value.

Both claims are backed by the deposited base asset, including any yield embedded in its value. Entry premiums or discounts and the remaining term affect your projected return; the pool does not guarantee the displayed APY. See [Implied APY](https://docs.tapir.money/protocol-mechanics/tapir-mechanics/amm.md#implied-apy).

***

### **When to use: Buy & Sell vs. Split**

| Use case                                           | Recommended action                                |
| -------------------------------------------------- | ------------------------------------------------- |
| You want an even 50/50 allocation                  | Use **Split**                                     |
| You want mostly protection (DP-heavy)              | **Buy DP**                                        |
| You want maximum yield boost (YB-heavy)            | **Buy YB**                                        |
| You already split and want to shift your ratio     | **Sell** one side to base, then **buy** the other |
| You want to exit to the base asset before maturity | **Sell** your tokens, or **Unsplit** pairs        |
