Earn Fees By Integrating
Anyone who integrates Shogun can earn fees, whether from our SDK, API, or Swap Widget.
How to Earn Fees
If you're integrating any of our services, you can include affiliateFee
and affiliateAddress
params to earn fees on any swaps done through your integration. The affiliateFee
specifies the % of volume to take as a fee. Fees are instantly deposited to the address listed in the affiliateAddress
param at the point of transaction execution.
The fee is taken out of the user's input asset and is automatically reflected in any quotes you receive through our API. Since the fee is specified at the point of quote, you can specify different address and fee rates for each chain.
Examples
SDK Example
Widget Example
API Example
Last updated