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

# PancakeSwap

> Open a concentrated liquidity position in a PancakeSwap v3 pool within a chosen price range.

Yield.xyz exposes each PancakeSwap v3 pool as a public `concentrated_liquidity_pool` yield. Instead of a fungible LP token, your position is an NFT confined to a price range: it only earns trading fees while the pool trades inside that range.

## Availability

| | |
| - | - |
| Networks | BNB Chain, Ethereum, Base, Arbitrum, Monad, Linea |
| Input tokens | The pool's token pair; deposit either token by `symbol` or address |
| Position | An ERC-721 v3 position (`tokenId`), not a fungible token |
| Yield ID pattern | `<network>-<lp-token-symbol>-<pool-address>-<fee-tier>-pancake-lp` |

List the PancakeSwap pools enabled for your project with [`GET /v1/yields`](https://docs.yield.xyz/api-reference/YieldsController_getYields) filtered by `providers=pancakeswap`. Enter and exit are open at all times; `status.enter` and `status.exit` are always `true` and there is no cooldown.

## Entering

Entering takes an `amount` of one pool token (`inputToken`) and an optional price range, `rangeMin` and `rangeMax`. The only supported `mode` is `"balanced"`, which splits the deposit's value across both pool assets to fill the chosen range. Omitting both `rangeMin` and `rangeMax` opens a full-range position spanning the pool's entire tick space.

If your address already holds a position in the same pool with the exact same range, entering again increases the liquidity of that existing position instead of minting a new one. A different range always opens a new position.

## Exiting

Exiting takes the position's `tokenId` and a `percentage` (0 to 100) of its liquidity to remove; `100` closes the position fully. A partial exit reduces the position's liquidity and leaves the rest in range.

## Rewards and position

Trading fees accrue on the position separately from its liquidity, visible as a `claimable` balance per pool asset once fees are owed. Claiming is manual: it uses the `CLAIM_REWARDS` pending action, referencing the position's `tokenId`. A position that trades out of its range stops earning fees until the price returns inside it or the range is adjusted by exiting and re-entering.

## List the live yields

Copy this request to list the PancakeSwap yields enabled for your project. Yield IDs change as markets and networks are added, so query the API rather than hardcoding them.

```bash theme={null}
curl "https://api.yield.xyz/v1/yields?providers=pancakeswap&limit=100" \
  -H "x-api-key: $YIELD_API_KEY"
```

## Next steps

> [card] [LPing](https://docs.yield.xyz/documentation/earn/defi/lping/index.md)
>
> Compare the classic and concentrated liquidity position models.

> [card] [Action lifecycle](https://docs.yield.xyz/documentation/earn/core-concepts/actions.md)
>
> Request, sign, and submit enter and exit actions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.