Partner and hookData
Hook Partner attribution selects a registered Partner's share of the protocol portion of the Hook Fee. It does not add a separate user fee. The Partner is identified by a bytes32 ID, not a recipient address, referral string or Aggregator custom-fee receiver.
Encoding
No Partner
0x
No Partner attribution
Zero Partner ID
32 zero bytes from abi.encode(bytes32(0))
Also no Partner attribution
Registered Partner
abi.encode(partnerId); exactly 32 bytes
Resolve Partner and apply current enabled/policy state
import { encodeLaunchpadPartnerHookData } from "@masterpeach/launchpad-sdk";
const hookData = encodeLaunchpadPartnerHookData(partnerId);
const noPartner = encodeLaunchpadPartnerHookData(); // "0x"Use your registered partnerId. The SDK encodes it as one ABI bytes32 value; an omitted or zero ID produces empty bytes. Read the registry before quoting and simulate with the same bytes that will be sent. Encoding does not establish whether a Partner is registered or enabled.
Registry state and failure behavior
At 0xcbAEf9E31D5be62CD084CC41EE20388D3f712A01, read partner(bytes32) for (name, controller, recipient, shareOfPlatformBps, exists, enabled) and partnerPolicy() for (defaultPartnerShareOfPlatformBps, maxPartnerShareOfPlatformBps). Use the deployed ABI when constructing these reads; policy and rates can change between simulation and mining.
Empty or zero ID
Swap has no Partner allocation
Non-empty data of length other than 32 bytes
InvalidConfiguration
Unknown nonzero ID
PartnerNotFound when fee allocation resolves that ID
Existing but disabled Partner
Swap may proceed; Partner share is zero
Enabled Partner whose share exceeds policy
PartnerShareTooHigh
Disabled Partner attempting to claim
PartnerDisabled; existing balance stays in Escrow
Wrong claim caller
NotPartnerRecipient; only the current registered recipient can claim
Do not treat disabled as deleted. Settlement can still credit an existing disabled Partner; claiming is gated at claim time. Re-enabling or changing the registered recipient affects who can later claim the Partner ledger. Never replace a rejected ID silently with a different revenue recipient.
Supported entry points
Current Arc Aggregator HTTP swap / prepare / build
No Partner hookData parameter; adapter sends empty bytes
Direct Router with an explicit forwarding parameter
Yes, if its deployed implementation forwards it unmodified
Hook's own conversion/buyback
Internal self-swap exemption; not a third-party attribution entry point
customFeeBps and customFeeReceiver charge an Aggregator output fee under a signed execution plan. Hook Partner fees are deducted from the Hook protocol allocation and credited by Partner ID through the Hook/Escrow settlement process. They have different configuration, accounting and claim paths. See Hook fee arithmetic and Aggregator fees.
Last updated
Was this helpful?