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

# LP fee distribution

> How LaunchLab combines platform and creator scales into platform-owned locked LP and burns the remaining CPMM LP tokens.

When a LaunchLab token migrates to CPMM, the pool mints LP tokens. Before the 2026-08-17 upgrade, `creatorScale` was locked separately for the token creator. For migrations executed after the upgrade, `migrateCpLockNftScale` still stores three fields that sum to `1_000_000`, but the runtime produces only two destinations.

## Effective split

| Field | Updated behavior |
| - | - |
| `platformScale` | Included in the platform-owned locked-LP share. |
| `creatorScale` | Before the upgrade, minted a creator-owned Fee Key. After the upgrade, it is included in the platform-owned locked-LP share. |
| `burnScale` | Burned permanently. No Fee Key represents this share. |

```text theme={null}
effectivePlatformScale = platformScale + creatorScale
platformLp = floor(totalLp × effectivePlatformScale / 1_000_000)
burnLp = totalLp − platformLp
```

When `burnScale` is zero, the platform receives all LP units. When `effectivePlatformScale` is zero, all LP is burned and no platform Fee Key is created.

## Examples

```ts theme={null}
// @raydium-io/raydium-sdk-v2@0.2.64-alpha · mainnet-beta · verified 2026-08-13
// creatorScale must be 0 — the program asserts it on both create and update.

// 90% platform-owned locked LP, 10% burned.
migrateCpLockNftScale: {
  platformScale: new BN(900_000),
  creatorScale: new BN(0),
  burnScale: new BN(100_000),
}

// 100% platform-owned locked LP.
migrateCpLockNftScale: {
  platformScale: new BN(1_000_000),
  creatorScale: new BN(0),
  burnScale: new BN(0),
}

// 100% burned; no Fee Key.
migrateCpLockNftScale: {
  platformScale: new BN(0),
  creatorScale: new BN(0),
  burnScale: new BN(1_000_000),
}

// A stored value you may still READ off a pre-2026-08-17 config — not settable now.
// Its 500_000 creator share is folded into the platform's locked LP at migration:
// { platformScale: 400_000, creatorScale: 500_000, burnScale: 100_000 }
```

## Relationship to CPMM creator fees

The scale fields control LP ownership only. They do not set swap fee rates or identify the CPMM creator-fee beneficiary. `cpConfigId` selects the CPMM `AmmConfig`; `platformCpCreator` determines whether the CPMM pool records the original launch creator or a platform-selected address.

## Updating the split

Before updating a platform:

* Confirm the three values sum to exactly `1_000_000`.
* Present `platformScale + creatorScale` as the effective platform share.
* Do not promise a creator Fee Key based on `creatorScale`.
* Preserve creator Fee Key ownership shown by migrations completed before the upgrade; those records are not rewritten.
* Explain the change before future launches use the updated config.

## Pointers

* [Platform config](https://docs.raydium.io/products/launchlab/platform-config.md)
* [Burn & Earn](https://docs.raydium.io/user-flows/burn-and-earn.md)
* [LaunchLab & CPMM fee reference](https://docs.raydium.io/products/launchlab/tips-and-gotchas/launchlab-cpmm-fee-reference.md)
* [LaunchLab creator fees](https://docs.raydium.io/products/launchlab/creator-fees.md)


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