Revenue Distribution
Revenue Distribution routes Creator revenue to a Splitter that allocates it among wallets and strategies. Protocol and Partner shares are deducted before this stage. A direct Creator Fee Recipient remains available when sharing is unnecessary.
Connect
Use publicClient and arcTestnetLaunchpadV2Deployment from Quickstart:
import {
arcTestnetProDistributionDeployment,
createLaunchpadProClient,
verifyLaunchpadProDistribution,
} from "@masterpeach/launchpad-sdk/v2";
const pro = createLaunchpadProClient({
publicClient,
deployment: arcTestnetLaunchpadV2Deployment,
distribution: arcTestnetProDistributionDeployment,
});
await verifyLaunchpadProDistribution(pro);For transactions, also pass the connected walletClient. Use the matching Core and Distributor presets together.
Create with sharing
Build the V7 request, including
protectionDays. SetcreatorFeeRecipientto the zero-address placeholder; the Forwarder resolves the Splitter.Build
{ entries }. Each entry containsrecipient, positive integershares,strategyType,initializationandmetadataURI. A direct wallet uses its address,zeroHashand"0x"; a strategy uses the matching strategy configuration.Call
previewLaunchpadProRevenueLaunch. Review its pinned request, addresses, allocations, protection choice and funding.Approve required assets to the Revenue Forwarder and confirm approvals.
Use
prepareLaunchpadProRevenueLaunch, send and confirm the receipt. Read the resulting composition and launch state.
The SDK encodes dynamic creation version 4 and forwards the selected protection days. Do not substitute a Classic request or manually reuse a different Forwarder.
Allocate and claim
Accrued Core fees
Await Curve/Hook settlement
FeeEscrow credit
Creator revenue credited to the recipient or Splitter
Splitter allocation
Funds assigned to a wallet or strategy
Wallet claimable
Funds the wallet can withdraw through the applicable claim flow
For 100 raw units with weights 4:4:2, allocations are 40, 40 and 20. Each allocation rounds down independently; a rounding remainder is not automatically paid to the last recipient.
Use getLaunchpadProRewardsState to query by asset, prepareLaunchpadProCollectAndHarvest to prepare collection and prepareLaunchpadProRevenueClaim for direct-wallet allocations. Strategy allocations follow Holder Rewards or Buyback and Vesting. Allocation alone does not fund a published reward period or complete a buyback.
Add sharing to an existing token
While recipient updates remain enabled, the current Creator Controller can prepare a candidate Splitter with prepareLaunchpadProRevenueDistribution, then activate it with prepareLaunchpadProRevenueActivation. Confirm both transactions. getLaunchpadProRevenueComposition distinguishes a prepared candidate from the active Creator Fee Recipient.
Keep the Splitter and Holder addresses with each allocation and claim. Changing a recipient does not move previously credited funds or published reward rights. Core control, Splitter authority, Vest payee and Holder publisher are separate roles.
Last updated
Was this helpful?