Collecting fees

Claim trading fees earned from bonding curves and post-migration LP positions

LaunchLab generates fees at two stages: during bonding curve trading and after migration to liquidity pools. Platforms and creators can claim their earned fees at any time.

Fee overview

Stage
Fee type
Who earns
Claim method

Bonding curve

Trading fees

Platform

claimVaultPlatformFee()

Bonding curve

Trading fees

Platform

claimAllPlatformFee()

Bonding curve

Trading fees

Creator

claimCreatorFee()

Post-migration

LP trading fees

Platform

harvestLockLiquidity()

Post-migration

LP trading fees

Creator

harvestLockLiquidity()

Post-migration

CPMM creator fees

Creator

collectCreatorFee()


Bonding curve fee collection

Fees accumulate during bonding curve trading. Both platforms and creators can claim their share at any time.

Platform fee collection

Claiming from platform vault

Platforms earn a share of every trade on bonding curves they host. Fees accumulate in a vault and can be claimed anytime.

typescript

import { TxVersion } from '@raydium-io/raydium-sdk-v2'
import { initSdk } from './config'
import { PublicKey } from '@solana/web3.js'
import { NATIVE_MINT } from '@solana/spl-token'

const claimPlatformFees = async () => {
  const raydium = await initSdk()

  const { execute } = await raydium.launchpad.claimVaultPlatformFee({
    platformId: new PublicKey('your-platform-id'),
    mintB: NATIVE_MINT,
    claimFeeWallet: raydium.ownerPubKey, // optional, defaults to signer
    txVersion: TxVersion.V0,
  })

  const { txId } = await execute({ sendAndConfirm: true })
  console.log('Platform fees claimed:', txId)
}

Claiming from multiple quote tokens

If your platform hosts launches with different quote tokens:

typescript

Claiming from all pools

Claim fees from all bonding curve pools on your platform at once:

typescript


Creator fee collection

Claiming bonding curve fees

Creators earn fees from trades on their token's bonding curve. Fees accumulate in a creator-specific vault.

Claiming from multiple quote tokens

If you've launched tokens with different quote tokens:

Post-migration LP fee collection

After migration to CPMM, both platforms and creators can claim their share of LP trading fees using the Fee Key NFT they received.

Claiming LP fees

Understanding Fee Key NFTs

Property
Details

What it is

An NFT minted to the creator/platform wallet during migration

What it represents

Claim rights to a share of LP trading fees

Transferable

Yes, the new owner inherits fee claim rights

{% hint style="warning" %} Do not burn your Fee Key NFT. If burned, fee claim rights are permanently lost. {% endhint %}

CPMM creator fees

If creatorFeeOn was configured during launch, creators also earn additional fees from CPMM trades. These are separate from the LP fee share.

Fee accumulation timeline

Bonding curve phase

  • Platform fees — claim with claimVaultPlatformFee()

  • Creator fees — claim with claimCreatorFee()

  • Denomination — quote token (e.g., SOL)

Post-migration phase

  • Platform fees — claim with harvestLockLp()

  • Creator fees — claim with harvestLockLp() and optionally collectCreatorFee() (CPMM)

  • Denomination — both tokens in the pair

Best practices

  1. Claim regularly — fees don't auto-compound, claim periodically to realize gains

  2. Track multiple pools — if you operate multiple launches, batch claims where possible

  3. Secure Fee Key NFTs — treat them like valuable assets; losing them means losing fee rights

  4. Monitor both sources — after migration, remember to claim from both bonding curve vaults and LP positions

Last updated

Was this helpful?