Collect fees

It's also possible for integrators to collect fees on each transaction made through the widget.

You'll need to update the configuration to do so.

  collectFees?: {
    integratorAddress: string; // The EVM address of the integrator that will receive the fee
    fee: number; // The amount in "basis points" for the fee. 50 = 0.05%. there is currently soft limit of 1% fee allowed for each tx.
  };

Note: Squid takes a 50% fee on all fees collected by an integratorAddress.

You can find the full configuration types here:

Configuration Types

Last updated