Collect Fees
Integrator Fee Structure
Squid v2 allows integrators to implement their own fee structure on top of Squid's platform fees. This document details the structure of Integrator fees implemented on through Squid.
To implement fees please contact the Squid team. Note, Squid splits all fees collected by integrators 50/50. Please see the Platform Fee Structure section for more detail.
Integrator Fee Configuration
As an integrator, you can implement the following fee structures:
Flat fee: A fixed amount per transaction
Percentage fee: A percentage of the transaction amount
Secondary address fees (optional): Fees sent to a second address
Option to waive platform fee (if allowed by Squid)
Implementing Integrator Fees
In order to prevent abuse an abuse of the fee collection system, we implement the collectFees
parameter on the backend for integrators:
Fee Precision
You can set fees with precision up to thousandths of a percent (0.001% - 100% or 0.00001 - 1 in decimal form).
Fee Display
Within the returned route request, all fees (including your integrator fees and Squid's platform fees) are aggregated into a single "Service fee" in the route response. This appears in the feeCosts
array and route.actions
:
Platform Fee Structure
Squid splits all fees collected by integrators 50/50.
In the future, Squid may charge additional platform fees on top of integrator fees. These may include:
Platform Base Fee
Chain-specific Fees
Token-specific Fees
Volatility Tier Fees
The total fee for a transaction is calculated as:
Note: In some cases, Squid may allow integrators to waive certain platform fees. Please contact us for more information on fee customization options.
Last updated