Partners
Partners earn a configured share of the platform's base trading-fee revenue. Each bytes32 partnerId belongs to its PartnerRegistry deployment.
Attribute a trade
Pass the ID as the fifth argument of the Curve's buy/sell overload. On V4, pass it through hookData; see Partner and HookData.
Zero means no Partner. An unknown nonzero ID is rejected. An existing Partner earns new commission when commissionEnabled=true and frozen=false.
How commission is calculated
The launch's protocolFeeShareBps determines the platform portion of the base fee. The Partner's shareOfPlatformBps is applied to that portion. This commission is included in the trade's existing fee; it is not another surcharge.
Partner commission excludes Curve Snipe Tax and all Creator Tax. See the 100 Quote allocation example.
Status and roles
Commission enabled, unfrozen
Yes
Allowed
Allowed for the authorized role
Commission disabled, unfrozen
No
Allowed
Allowed for the authorized role
Frozen
No
Allowed
Blocked
Registry Owner manages Partner creation, name, commission share and status. The Partner Controller can change its Recipient and propose/cancel a Controller transfer while unfrozen; the proposed Controller must accept. The Recipient is authorized to claim. These roles are separate from the token's Creator Controller and Creator Fee Recipient.
Receive commission
Accrued Curve or Hook commission must first be settled into FeeEscrow. Read partnerBalance(partnerId, asset), then claim with claimPartner(partnerId, asset) or a valid batch entry. The caller must be the current Recipient and the Partner must be unfrozen.
Balances are keyed by Partner ID and fee asset. After a valid Recipient change, the new Recipient can claim the Partner's historical unclaimed balances. Disabling commission does not erase them. See Fees and Claims for claim methods.
Last updated
Was this helpful?