Skip to main content

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.

By default, CPMM creator fees from a LaunchLab-migrated pool are attributed to the original token creator. Platforms can override this for future migrations by setting platformCpCreator.

Why redirect creator fees

Platforms use creator-fee redirection when they need:
  • Custom distribution logic between creators, communities, and platform revenue.
  • A PDA-controlled fee collector for on-chain redistribution.
  • Unified accounting across all migrated pools under one platform.
Redirecting creator fees changes who can collect them. Token creators lose direct collection access for pools that migrate after the setting is active unless the platform redistributes fees to them.

How it works

  1. The platform admin calls updatePlatformConfig.
  2. updateInfo.type is set to updatePlatformCpCreator.
  3. The value is a wallet or PDA that will become the CPMM pool creator for future migrated pools.
  4. Future LaunchLab migrations under that platform assign CPMM creator fees to the configured address.
  5. The platform collects creator fees and redistributes them according to its own rules.
await raydium.launchpad.updatePlatformConfig({
  programId,
  platformAdmin: owner,
  updateInfo: {
    type: "updatePlatformCpCreator",
    value: new PublicKey("<PLATFORM_WALLET_OR_PDA>"),
  },
  txVersion: TxVersion.V0,
});

Gotchas

  • All-or-nothing per platform. The setting applies to every future migration under that platform.
  • Forward-looking only. Already-migrated pools keep their existing pool creator.
  • Epoch-limited updates. Platform config updates are rate-limited by Solana epoch.
  • Creator fees must exist. If the selected CPMM AmmConfig has creator_fee_rate = 0, there are no CPMM creator fees to collect.
  • WSOL handling matters. If collected fees are WSOL and you need native SOL, close the WSOL token account after collection.

Redistribution checklist

If you redistribute to original creators:
  1. Resolve each original creator from the LaunchLab pool account tied to the CPMM pool mints.
  2. Collect pending creator fees for the platform wallet or PDA.
  3. Calculate each creator’s agreed share.
  4. Transfer SPL tokens or SOL to creators, creating ATAs as needed.
  5. Publish enough accounting detail for creators to verify distributions.

Pointers