💲Monetization / Take Fees

As an integrator, you can monetize ZAP and collect fees from our Widget/SDK/API integration.

How it works

When using ZAP Widget or calling our SDK/API to request quotes for a transaction, you can pass a fee parameter specifying the percentage fee you'd be taking from the requested transaction. This percentage fee will be deducted from the user's initial asset and collected in a FeeCollection sub-contract inside ZAP Contracts. You can then withdraw the funds from the wallet specified by you during our integration.

The fees are collected on every chain and for every token individually. We will provide tools to get an easy overview of the collected fees and prepare contract calls for you to withdraw them. Of course, our tools can also be used to swap and bridge the collected fees to another chain.

You can configure different wallets for different chains.

In order to monetize Solana requests we would need to whitelist on our end a SOL address also. You can create a Solana address from the same seed phrase you have for your EVM wallet.

How to apply

What to provide in the request:

  • Your desired integrator string. It needs to be the same string as your API key if you have it. String can be any alphanumeric phrase with 23 character limit, all lower case, can contain "_", "-".

  • Wallet address where the fees will be collected. We need EVM and SOL address if you will be collecting fees on those chains.

How to set up

The fee parameter is the percent of the integrator's fee, that is taken from every transaction. The parameter expects a float number e.g 0.02 refers to 2% of the transaction volume. The maximum fee amount should be less than 100%. Also, you should pass your custom integrator string to ensure the fees are collected to the right account. ZAP will receive a percentage share of the collected fees depending on the use case and volume.

See examples of how to set up fee collection for different environments:

Last updated