> ## Documentation Index
> Fetch the complete documentation index at: https://docs.krokoswap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# LP Tokens

> Fungible liquidity provider tokens in V2 pools

# LP Tokens

When you add liquidity to a V2 pool, you receive **LP tokens** — fungible ERC-20 tokens that represent your proportional share of the pool.

## Minting

LP tokens are minted when you deposit both tokens into a pool.

**First deposit** (new pool):

$$
\text{LP minted} = \sqrt{amount_0 \times amount_1} - \text{MINIMUM\_LIQUIDITY}
$$

A small amount (`MINIMUM_LIQUIDITY = 1000 wei`) is permanently locked to prevent division-by-zero attacks.

**Subsequent deposits**:

$$
\text{LP minted} = \min\left(\frac{amount_0 \times \text{totalSupply}}{reserve_0},\; \frac{amount_1 \times \text{totalSupply}}{reserve_1}\right)
$$

You must deposit tokens at the current reserve ratio. Any excess of one token is refunded.

## Burning

To withdraw liquidity, you burn your LP tokens and receive both tokens back:

$$
amount_0 = \frac{\text{LP burned}}{\text{totalSupply}} \times reserve_0
$$

$$
amount_1 = \frac{\text{LP burned}}{\text{totalSupply}} \times reserve_1
$$

Because fees accumulate in reserves, the amount you receive will be greater than what you deposited (assuming trading volume occurred).

## Properties

| Property     | Description                                           |
| ------------ | ----------------------------------------------------- |
| Standard     | ERC-20                                                |
| Transferable | Yes — can be sent, traded, or used in other protocols |
| Supply       | Increases with deposits, decreases with withdrawals   |
| Value        | Backed by the pool's token reserves                   |

## Impermanent Loss

LP tokens are subject to **impermanent loss** — when the relative price of the two tokens changes from the time of deposit, the LP's position is worth less than simply holding both tokens. The loss is "impermanent" because it reverses if the price returns to the original ratio.

The magnitude of impermanent loss depends on the price change:

| Price Change | Impermanent Loss |
| ------------ | ---------------- |
| 1.25x        | 0.6%             |
| 1.50x        | 2.0%             |
| 2x           | 5.7%             |
| 3x           | 13.4%            |
| 5x           | 25.5%            |

Trading fees earned by the position may offset impermanent loss, depending on volume.
