Affiliate fees
Describes how to configure and receive affiliate fees for both cross-chain and same-chain swaps. Includes platform-specific handling for EVM and Solana.
Affiliate Fees
Affiliate fees can be earned through both cross-chain and same-chain swaps by including the appropriate parameters in the request. This allows integrators to monetize swap activity within their applications.
Cross-Chain Affiliate Fees
To enable affiliate fees for cross-chain swaps, the following parameters must be included when creating an order:
affiliateFeePercent
: The percentage of the order input amount allocated as the affiliate fee.affiliateFeeRecipient
: The address or public key of the affiliate fee beneficiary. This must be:A public key on Solana
A wallet address on EVM chains
Affiliate fees become available once an order reaches the ClaimedUnlock
state.
On EVM chains, the affiliate fee is automatically transferred to the specified recipient when a solver claims the order
On Solana, the fee must be withdrawn manually. Further details on withdrawing affiliate fees are provided here.
Same-Chain Affiliate Fees
The deBridge Widget also supports affiliate fee collection for same-chain swaps. These swaps use the same affiliateFeePercent
and affiliateFeeRecipient
parameters, with Solana requiring additional configuration.
Solana
For same-chain swaps on Solana:
The
affiliateFeeRecipient
must be a Jupiter referral key.Referral keys can be generated at https://referral.jup.ag/dashboard.
Earned fees can be claimed via the Jupiter Referral Dashboard.
Last updated
Was this helpful?