Skip to main content

What is feeAmount and feeBreakdown?

feeAmount is the fee charged per input token on a quoted trade. feeBreakdown lists each recipient, with role, token, receiver, bps, and amount.

J
Written by Javier Diaz

feeAmount is the fee charged for each input token on a quoted trade. feeBreakdown lists each recipient of that fee, with a role, token, receiver, basis points, and amount.

Definition

When partner fee capture or an Enso platform fee applies to a quote, the response tells you what was charged and who receives it, so your UI can show the fee instead of hiding it in a lower amountOut.

How it works

  • feeAmount is the fee amount charged for each input token.

  • Each feeBreakdown entry includes role (partner, enso-share, or splitter), token, receiver, bps, and amount.

  • ensoFeeAmount is Enso’s own platform fee, where it applies under your agreement.

  • When a splitter contract receives the fee, the breakdown has a single splitter entry for the whole fee.

How Enso does this

Route and Quote responses report these fields after you configure fees in the Developer Portal. No request parameter is required. See Fees. On chains with a splitter, the fee is claimed later from that contract.

FAQ

Is feeAmount the same as price impact?

No. Price impact estimates how the trade moves the quoted price. feeAmount and feeBreakdown are the fee charged on the quoted transaction.

Do I set feeAmount in the request?

No. Configure rules in the Developer Portal. The response reports the fee that was applied.

Related articles

  • How do I set a partner fee on user trades?

  • How do I claim fees from a splitter contract?

  • Why is amountOut lower than I expected?

  • What is price impact?

  • What is amountIn vs amountOut?

Sources

Did this answer your question?