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

# Migration to XDSwap

> What happens when a token graduates from the bonding curve

## Migration Threshold

When a token's bonding curve reaches **85 SOL** in real reserves, it automatically migrates to XDSwap — XD.fun's native DEX.

## What Happens at Migration

1. **Liquidity Transfer**: SOL and tokens move from bonding curve to XDSwap pool
2. **LP Tokens Burned**: Liquidity provider tokens are permanently burned
3. **Liquidity Locked**: No one can remove the liquidity — it's locked forever

## After Migration

| Aspect                | Before                | After                                     |
| --------------------- | --------------------- | ----------------------------------------- |
| **Trading venue**     | Bonding curve         | XDSwap AMM                                |
| **Total fee**         | 0.75% max             | 0.30% – 1.20% (varies by market cap tier) |
| **Protocol fee**      | 0.45%                 | 0.45% under 420 SOL, 0.05% above          |
| **Creator fee (max)** | 0.30%                 | 0.30% – 0.95% (varies by tier)            |
| **LP fee**            | 0%                    | 0.02% – 0.20%                             |
| **Price mechanism**   | Bonding curve formula | AMM pool                                  |
| **Liquidity**         | Virtual + real        | Fully real, locked                        |

<Note>
  Creator fees shown above are maximums. The actual creator fee depends on the creator's fee modifier (0-100%) set at token creation.
</Note>

## XDSwap

XDSwap is XD.fun's own decentralized exchange. Benefits:

* **Dynamic fees** that decrease as market cap grows
* **Locked liquidity** prevents rug pulls
* **Same interface** — trading feels the same
* **Fee config preserved** — creator fee distribution continues

## Seamless Experience

You don't need to do anything different when trading migrated tokens. XD.fun automatically routes to XDSwap — the experience is identical.

## Migration Fee

A flat **0.015 SOL** fee is charged at migration to cover pool creation costs.

<Note>
  Migration is automatic and irreversible. Once migrated, tokens cannot return to the bonding curve.
</Note>
