> ## 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 费用分配

> LaunchLab 如何将平台和创建者规模合并到平台所有的锁定 LP 中，并销毁剩余的 CPMM LP 代币。

> [!NOTE]
>
> **本页内容由 AI 自动翻译，所有内容以英文版本为准。**
>
> [查看英文版 →](https://docs.raydium.io/products/launchlab/tips-and-gotchas/lp-fee-distribution.md)

当 LaunchLab 代币迁移到 CPMM 时，资金池会铸造 LP 代币。在 2026-08-17 升级之前，`creatorScale` 为代币创建者单独锁定。对于升级后执行的迁移，`migrateCpLockNftScale` 仍然存储三个字段，其总和为 `1_000_000`，但运行时只产生两个目标。

## 有效分割

| 字段 | 更新后的行为 |
| - | - |
| `platformScale` | 包含在平台所有的锁定 LP 份额中。 |
| `creatorScale` | 升级前为创建者所有的费用密钥铸造。升级后，它包含在平台所有的锁定 LP 份额中。 |
| `burnScale` | 永久销毁。没有费用密钥代表此份额。 |

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

当 `burnScale` 为零时，平台接收所有 LP 单位。当 `effectivePlatformScale` 为零时，所有 LP 被销毁，不创建平台费用密钥。

## 示例

```ts theme={null}
// @raydium-io/raydium-sdk-v2@0.2.64-alpha · mainnet-beta · verified 2026-08-13
// creatorScale 必须为 0 —— 程序在创建和更新时都会断言这一点。

// 90% 平台所有的锁定 LP，10% 销毁。
migrateCpLockNftScale: {
  platformScale: new BN(900_000),
  creatorScale: new BN(0),
  burnScale: new BN(100_000),
}

// 100% 平台所有的锁定 LP。
migrateCpLockNftScale: {
  platformScale: new BN(1_000_000),
  creatorScale: new BN(0),
  burnScale: new BN(0),
}

// 100% 销毁；无费用密钥。
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 }
```

## 与 CPMM 创建者费用的关系

规模字段仅控制 LP 所有权。它们不设置交换费率或标识 CPMM 创建者费用受益人。`cpConfigId` 选择 CPMM `AmmConfig`；`platformCpCreator` 决定 CPMM 资金池是记录原始启动创建者还是平台选定的地址。

## 更新分割

在更新平台之前：

* 确认三个值的总和恰好为 `1_000_000`。
* 将 `platformScale + creatorScale` 呈现为有效的平台份额。
* 不要基于 `creatorScale` 承诺创建者费用密钥。
* 保留升级前完成的迁移所显示的创建者费用密钥所有权；这些记录不会被重写。
* 在未来的启动使用更新的配置之前解释此更改。

## 相关链接

* [平台配置](https://docs.raydium.io/zh/products/launchlab/platform-config.md)
* [销毁与收益](https://docs.raydium.io/zh/user-flows/burn-and-earn.md)
* [LaunchLab 与 CPMM 费用参考](https://docs.raydium.io/zh/products/launchlab/tips-and-gotchas/launchlab-cpmm-fee-reference.md)
* [LaunchLab 创建者费用](https://docs.raydium.io/zh/products/launchlab/creator-fees.md)


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