Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Fees

Fabric Fee Schedule

Fabric takes surplus and charges a 0 bps fee by default.

Integrators can choose to receive up to 100% of surplus in exchange for a fee on the swap. As integrator surplus share increases, Fabric swap fee increases up to 10 bps.

Integrator Surplus ShareFabric Swap Fee
0%0 bps
100%10 bps

Integrator Swap Fees

Integrators can set a fee on the swap itself using fee params:

  • feeBps (max 1000 bps)
  • feeRecipient (required when feeBps is set)

Integrator Surplus Fees

Integrators can define their share of surplus using surplus fee params:

  • surplusFeeBps (max 10000 bps)
  • surplusFeeRecipient (required when surplusFeeBps is set)

Integrator Referral Fees

Integrators can use referral fee params for referral attribution:

  • referralFeeBps (max 1000 bps)
  • referralFeeRecipient (required when referralFeeBps is set)

Fee Token Preference

Fabric currently decides which token fees are taken in.

Default behavior:

  • prefer major tokens
  • if neither side is a major token, prefer the output token for fee collection