Monetizing the integration
As an integrator, you can monetize LI.FI and collect fees from our Widget/SDK/API integration.
Any dApp that integrates LI.FI’s Widget, SDK, or our API can now take fees from the volume they put through LI.FI.
How it works
When using LI.FI 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.
EVM
The fees are collected in the LI.FI fee collector contract and need to be claimed by the wallet set-up to collect fees.
Only the designated fee-collection wallet is authorized to claim accrued fees.
Once fees have been accrued in a wallet, they are non-transferable and cannot be claimed by any other wallet. If the fee-collection wallet is updated at a later time, only the fees accrued after the update will be available in the new wallet.
Sui
The fees are sent to the fee wallet directly and do not need to be claimed.
Solana
The fees are sent to the fee wallet directly and do not need to be claimed.
Bitcoin
The fees are sent to the fee wallet directly and do not need to be claimed.
When collecting fees on Bitcoin, the transaction data must remain unaltered. This data contains critical transfer and user refund instructions that are specific to each bridge integration. Modifying the transaction data may lead to irreversible loss of funds.
How to set-up fee wallets
To set up your account and to start collecting fees, please set up your integration on portal.li.fi.
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.
How to set up fee collection
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. LI.FI 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: