> ## 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.

# 2026-12-07 — LaunchLab: new fee-vault addresses in three steps, and a precise linear curve

> LaunchLab moves its creator and platform fee vaults to prefixed PDA addresses over three program upgrades (2026-12-07, 2026-12-21, and a follow-up that removes the temporary MigrateFeeVault instruction). SDK users only need to upgrade to @raydium-io/raydium-sdk-v2@0.2.88-alpha or later before 2026-12-21, with no code changes. The same release stores the linear-curve slope as Q128, finalizes Token-2022 dust, bounds vesting periods, and raises the creator-fee cap to 100 bps.

> [!NOTE]
>
> This entry covers an upcoming LaunchLab program update. It was verified against the release branch (`04fa7f5`) and `@raydium-io/raydium-sdk-v2@0.2.88-alpha` before deployment. The 2026-12-21 step and the final clean-up release will be recorded here when they ship.

This release changes where LaunchLab keeps the fees it owes to creators and platforms.

Until now, both kinds of fee vault were derived from the same seed shape, `[owner, quote_mint]`. A creator vault and a platform vault for the same key could therefore collide on one address. The new addresses carry a per-kind prefix. Moving live balances without interrupting anyone takes three program upgrades. Everyone keeps trading and claiming throughout.

The same release also fixes the precision of the linear-price curve and closes three edge cases around the end of a raise.

## Rollout

| Step | Time (UTC) | Program behaviour | What you do |
| - | - | - | - |
| **1** | **2026-12-07 13:00:00** | Trades and fee claims accept **both** the current and the legacy fee-vault address. `MigrateFeeVault` is added for the admin. | Upgrade to `@raydium-io/raydium-sdk-v2@0.2.88-alpha` or later. Creators and platforms: claim your accrued fees promptly. |
| **2** | **2026-12-21 13:00:00** | Legacy fee-vault addresses are **rejected**. The admin moves every remaining legacy balance to its current address with `MigrateFeeVault`. | Nothing, if you upgraded in step 1. |
| **3** | Right after the admin finishes step 2 | `MigrateFeeVault` and its signer key are removed from the program. | Nothing. |

> [!WARNING]
>
> **Upgrade the SDK before 2026-12-21 13:00 UTC.** Versions before `0.2.88-alpha` pass the legacy vault addresses. They keep working during step 1 and **fail for every trade and fee claim** from step 2 on.

## What you need to do

### Apps and bots using the TypeScript SDK

Upgrade the package. **No code change is needed.**

```bash theme={null}
npm install @raydium-io/raydium-sdk-v2@0.2.88-alpha   # or any later version
```

* `buyToken`, `buyTokenExactOut`, `sellToken`, `sellTokenExactOut`, `createLaunchpad` (with its initial buy) and the `tradeV2` routes keep their parameters. They now pass the current vault addresses.
* `claimCreatorFee`, `claimMultipleCreatorFee`, `claimVaultPlatformFee` and `claimMultipleVaultPlatformFee` keep their parameters. During the transition they also include a legacy vault that still holds a balance, so a single call sweeps both.
* `getPdaCreatorVault` and `getPdaPlatformVault` now return the **current** addresses. Code that only passes their result to the SDK's own builders needs nothing. Code that stores or compares these addresses should expect the new values. `getPdaLegacyFeeVault` returns the old one.

### Creators and platforms

Claim your accrued fees promptly after 2026-12-07. Fees are never lost. Whatever is still in a legacy vault at 2026-12-21 is moved to your new vault by the admin, and you claim it from there as usual.

Claiming yourself first is still better, for two reasons:

* The legacy balance is unavailable for the short window between the 2026-12-21 upgrade and the admin's migration of your vault.
* If your quote mint is a Token-2022 mint with a transfer fee, the admin's move is a normal token transfer, so the mint takes its transfer fee from the moved balance. A claim before then avoids that fee.

### Integrators building instructions from the IDL

* **Trades:** the `platform_fee_vault` and `creator_fee_vault` remaining accounts must be the **current** addresses by 2026-12-21. Their order and the rest of the remaining-account contract are unchanged.

  ```
  platform_fee_vault = PDA([b"platform_fee_vault_seed", platform_config, quote_mint])
  creator_fee_vault  = PDA([b"creator_fee_vault_seed",  creator,         quote_mint])
  ```

* **Claims:** `ClaimCreatorFee` and `ClaimPlatformFeeFromVault` keep their accounts and order. However, the vault is now checked in the instruction body instead of by an Anchor `seeds` constraint, so the new IDL **has no `pda` hint** for `creator_fee_vault` / `platform_fee_vault`. Anchor's automatic account resolution can no longer fill them in, so pass them explicitly.

* **Refresh your IDL** — see [IDL files](#idl-files) below.

### Indexers

* Listen for the new `DustFinalizedEvent` (below). It marks a graduation that happens without a trade.
* Fee transfers in trade transactions now go to the new vault addresses. Track both addresses per owner until 2026-12-21. `MigrateFeeVault` transactions move each legacy balance to the new address and close the legacy account.
* For linear-price pools, `virtual_base` / `virtual_quote` change meaning (see below). Mainnet has no linear-price pools.

## TL;DR for integrators

* **Fee vaults move to prefixed seeds.** `[b"creator_fee_vault_seed", creator, quote_mint]` and `[b"platform_fee_vault_seed", platform_config, quote_mint]`. The legacy unprefixed addresses are accepted until 2026-12-21. The vault authorities are unchanged.
* **One instruction is added, temporarily: `MigrateFeeVault`.** Admin-only. It is removed in step 3. See [`products/launchlab/instructions`](https://docs.raydium.io/products/launchlab/instructions#migratefeevault).
* **One event is added: `DustFinalizedEvent`.**
* **Linear-price curve:** the slope is now Q128, stored across `virtual_base` (low 64 bits) and `virtual_quote` (high 64 bits).
* **End-of-curve fixes:** a linear-curve buy of the whole remaining base is charged one quote unit. A Token-2022 base whose remainder is entirely eaten by its transfer fee is finalized to `Migrate`.
* **Vesting:** `cliff_period` and `unlock_period` are capped at 100 years.
* **Creator-fee cap:** `MAX_CREATOR_FEE_RATE` rises from `5000` (50 bps) to `10000` (100 bps).
* **No error code changed.** `6000`–`6031` are identical to the 2026-09-09 release.
* **No account layout changed.** No other instruction changed its accounts or arguments.

## The fee-vault change

The old seeds were `[creator, quote_mint]` for a creator vault and `[platform_config, quote_mint]` for a platform vault. Nothing in them said which kind of vault an address was. The new seeds add a string prefix per kind, so the two derivations can never meet:

| Vault | Current seeds | Legacy seeds | Owned by |
| - | - | - | - |
| Creator fee vault | `[b"creator_fee_vault_seed", creator, quote_mint]` | `[creator, quote_mint]` | `[b"creator_fee_vault_auth_seed"]` |
| Platform fee vault | `[b"platform_fee_vault_seed", platform_config, quote_mint]` | `[platform_config, quote_mint]` | `[b"platform_fee_vault_auth_seed"]` |

From step 1, the trade path accepts either address in each vault slot. It creates the vault on first use at whichever address you passed. Both claim instructions accept either address too. From step 2, only the current address is accepted everywhere.

`MigrateFeeVault` performs the move for one vault per call:

1. Create the current vault if needed (the admin pays the rent).
2. Transfer the legacy vault's full balance with `TransferChecked`.
3. Harvest any withheld Token-2022 fees on the legacy vault to the mint.
4. Close the legacy vault.

The full account list is on [`products/launchlab/instructions`](https://docs.raydium.io/products/launchlab/instructions#migratefeevault), and the signer is listed on [`reference/program-addresses`](https://docs.raydium.io/reference/program-addresses#launchlab-fee-vault-migration-wallet).

## Linear-price curve precision

The linear curve stored its slope `a = 2F / S²` as a Q64 number in `virtual_base`. Here `F` is the fundraising target and `S` is the curve's sell amount. With realistic supplies, `S` is around 1e14–1e16, so that slope is a single-digit integer or below one. Rounding it moved the sold-out raise by up to tens of percent. A 1B-token, 30-SOL launch reached only about 24 SOL, and a 10B-token launch rounded the slope to zero and could not be created.

The slope is now Q128.128, `a_x128 = floor(F · 2^129 / S²)`, split as `virtual_base` (low 64 bits) and `virtual_quote` (high 64 bits). A sold-out pool now raises exactly `F`. All curve math uses 256-bit intermediates with pool-favouring rounding. `SellExactOut` now rejects a request that would release quote for zero base. The formulas are on [`products/launchlab/bonding-curve`](https://docs.raydium.io/products/launchlab/bonding-curve#linear-price-curve).

Mainnet had no linear-price pools at the time of the change, so no stored pool is reinterpreted.

## End-of-curve fixes

Both cases used to leave a pool stuck in `Fund` with a few base units that nobody could buy.

* **Linear curve flat tail.** Rounding up the cumulative quote makes the last `≈ S / (2F)` base units cost nothing, and every buy must pay at least one quote unit. A buy of the **whole** remaining base is now charged one quote unit and completes the raise. A partial buy inside the tail is still rejected.
* **Token-2022 base dust.** If the remaining base is exactly consumed by the base mint's transfer fee, it can never be delivered. After any successful buy the program now checks for that state. If found, it sets the pool to `Migrate`, starts the vesting clock, and emits `DustFinalizedEvent { pool_state, remaining_base, transfer_fee }`. The dust is migrated with the unsold base.

Details: [End of the curve](https://docs.raydium.io/products/launchlab/instructions.md#end-of-the-curve).

## Smaller changes

* **Vesting time bounds.** With a non-zero `total_locked_amount`, `cliff_period` and `unlock_period` must each be at most `3_153_600_000` seconds (100 years), else `InvalidInput`. This prevents an overflow in the vesting start-time arithmetic. See [`products/launchlab/vesting`](https://docs.raydium.io/products/launchlab/vesting#schedule-shape).
* **Creator-fee cap.** `PlatformConfig.creator_fee_rate` may now be set up to `10000` (100 bps) on create and update. Existing platforms keep their stored rate. See [`products/launchlab/platform-config`](https://docs.raydium.io/products/launchlab/platform-config#rate-caps).

## IDL files

An IDL refresh is required for the new instruction, the new event, and the removed `pda` hints. Both IDLs below are archived permanently on [`reference/idl/launchlab`](https://docs.raydium.io/reference/idl/launchlab):

| Version | Use for | IDL | TS type | Source |
| - | - | - | - | - |
| **2026-12-07** (this release) | Transactions from 2026-12-07 13:00 UTC on | [`raydium_launchpad.json`](https://raydium-io.github.io/raydium-docs-v1/idl/launchlab/2026-12-07/raydium_launchpad.json) | [`raydium_launchpad.ts`](https://raydium-io.github.io/raydium-docs-v1/idl/launchlab/2026-12-07/raydium_launchpad.ts) | `04fa7f5` |
| **2026-09-09** (previous, `master`) | Transactions before 2026-12-07 13:00 UTC | [`raydium_launchpad.json`](https://raydium-io.github.io/raydium-docs-v1/idl/launchlab/2026-09-09/raydium_launchpad.json) | [`raydium_launchpad.ts`](https://raydium-io.github.io/raydium-docs-v1/idl/launchlab/2026-09-09/raydium_launchpad.ts) | `d80268d` |

Differences between the two: `migrate_fee_vault` added (28 → 29 instructions), `DustFinalizedEvent` added (4 → 5 events), the `pda` entries of `claim_creator_fee.creator_fee_vault` and `claim_platform_fee_from_vault.platform_fee_vault` removed, and the `PoolState.virtual_base` doc text updated. Errors, accounts and all other instructions are identical. Checksums are on the [archive page](https://docs.raydium.io/reference/idl/launchlab.md#version-details).

The IDLs for steps 2 and 3 will be added to the archive and to this entry when those upgrades ship.

## What did not change

* **Every account layout.** `PoolState`, `GlobalConfig`, `PlatformConfig`, `PlatformCurveRule`, `PlatformAllowConfig` and `VestingRecord` have the same sizes and offsets. Only the meaning of `virtual_base` / `virtual_quote` changed, and only for linear-price pools.
* **Error codes `6000`–`6031`.** None added, removed or renumbered.
* **Every other instruction's accounts and arguments**, including the four trades, both initializations, migration, vesting and platform configuration.
* **The order of the trade remaining accounts** (`share_fee_receiver` when `share_fee_rate > 0`, `system_program`, `platform_fee_vault`, `creator_fee_vault`).
* **Constant-product and fixed-price curve math**, fee rates and fee splits.
* **Program ID.** Unchanged.

## Pages updated

* `products/launchlab/instructions` — new "Fee-vault addresses" and "End of the curve" sections, current seeds in the trade remaining accounts and both claim instructions, the IDL `pda` note, `MigrateFeeVault` with its account list, inventory and state-change matrix rows.
* `products/launchlab/accounts` — fee-vault seeds and derivation snippet, legacy-address note, `virtual_base` / `virtual_quote` meaning per curve.
* `products/launchlab/bonding-curve` — linear-price section rewritten: Q128 slope storage, integer formulas, the flat tail.
* `products/launchlab/platform-config` — `MAX_CREATOR_FEE_RATE` raised to `10000`, platform vault seeds.
* `products/launchlab/vesting` — `MAX_VESTING_PERIOD` bound.
* `products/launchlab/creator-fees`, `products/launchlab/code-demos` — migration notes and the minimum SDK version.
* `reference/program-addresses` — new "LaunchLab fee-vault migration wallet" section.
* `reference/idl` (new) — versioned IDL archive, starting with LaunchLab.
* `sdk-api/anchor-idl` — links to the archive.


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