> 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/liquidity.md).

# Liquidity

Tapir's liquidity pools enable the DP/YB marketplace to function. Liquidity providers (LPs) supply DP and YB tokens to a Uniswap V3-style concentrated liquidity pool and earn eligible swap fees while their positions are in range.

Removing liquidity returns the position’s **current DP/YB mix**, which can be concentrated in one token. It does not restore the original deposit amounts or directly return the base asset. [Exit & Redeem](https://docs.tapir.money/system-workflow/redeem.md) explains the remaining steps.

You can see available pools on the **Markets** page, along with each pool's **TVL** and current **LP APY**. The **Liquidity** page for a market has two parts: **Add Liquidity** and **My Positions**.

***

### **Why Provide Liquidity?**

When users buy or sell DP or YB through the **Buy & Sell** screen, they trade against the AMM pool. Liquidity providers supply the tokens that make these trades possible. In exchange, LPs share the swap fees earned by active liquidity — the current fee is shown on the trade screen. Out-of-range liquidity does not earn swap fees.

Eligible positions can also earn [program points](https://docs.tapir.money/incentives.md). Check the pool’s specific incentive terms; points are separate from swap fees and the underlying asset’s yield.

***

### **Adding Liquidity**

Liquidity is provided as a **concentrated position**: you deposit DP and YB within a chosen price range, and your liquidity earns fees while the market price stays inside that range.

1. From the **Markets** page, open the asset and go to **Liquidity**.
2. Choose a price range. You can pick a preset — **Tight**, **Standard**, or **Wide** — or drag the bounds on the price-range chart. The chart shows the current DP/YB price marker.
   * A tighter range earns more fees per dollar while in range, but goes out of range sooner.
   * A wider range earns fees more of the time, at lower capital efficiency.
3. Enter one token amount — the paired amount of the other token is calculated automatically from your range and the current price.
4. Review the pool context panel (current price, pool balances, pool address) and confirm. Token approvals are staged — the button walks you through each signature.

Your position is minted as an NFT and appears under **My Positions**.

{% hint style="info" %}
If you don't hold DP and YB yet, use the **Split** screen first — splitting the base asset gives you equal amounts of both tokens.
{% endhint %}

***

### **Managing Positions**

**My Positions** lists each of your positions with:

* **In-range status** — whether the current price is inside your range (out-of-range positions earn no fees).
* **Token amounts** — the DP and YB currently in the position.
* **Uncollected fees** — swap fees earned and ready to collect.
* **Range vs. current price** — your bounds against the live market price.

Available actions per position:

* **Add** — increase the position's liquidity.
* **Collect** — claim earned swap fees to your wallet (disabled when there is nothing to collect).
* **Remove** — withdraw liquidity (below).

***

### **Removing Liquidity**

1. Open the position and choose **Remove**.
2. Pick the percentage to withdraw with the slider (default 100%). The dialog previews the DP and YB you'll receive.
3. Confirm **Remove & Collect** — the liquidity is withdrawn and swept to your wallet together with any uncollected fees.
4. When removing 100%, the emptied position NFT can also be burned to clean up your wallet.

During Active, returned tokens can be traded through **Buy & Sell** or equal pairs recombined through **Unsplit**, subject to liquidity and the pool being unpaused. After maturity, pool unsplitting is unavailable; redeem after the pool resolves. External AMM position management is separate from the DepegPool lifecycle. Review [Redeem](https://docs.tapir.money/system-workflow/redeem.md) for waiting periods, pauses, and treasury-rescue timing.

***

### **Risks**

As with any AMM-based liquidity provision:

* **Impermanent loss** – If DP and YB token prices diverge significantly, the value of your LP position may differ from simply holding the tokens.
* **Depeg exposure** – An LP position holds both DP and YB. If a depeg occurs, the YB side loses value; your net exposure depends on the pool's composition at resolution.
* **Smart contract risk** – Review the published audit and release materials before providing size.
