> For the complete documentation index, see [llms.txt](https://txnlab.gitbook.io/haystack-dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://txnlab.gitbook.io/haystack-dev/haystack-router/fees.md).

# Fees

Order-Router Protocol

Haystack Order Router app, by default, charges a 10 **basis points (0.10%) fee** on the output, in addition to any fees charged by underlying protocols that are leveraged in the swap route. The fee can be increased by protocol users by using the `feeBps` argument of the [`fetchQuote`](/haystack-dev/haystack-router/api-order-router.md) api; 10 basis points is also the minimum.

* **Fixed-input:** the Order Router app also captures any positive slippage above the expected output as fees. To protect swappers, the total fee (the basis-point fee plus any captured positive slippage) is capped at **3% of the expected output**.
* **Fixed-output:** the fee is `feeBps` of the output before fees, rounded up, so that the output less the fee is exactly the target. It is capped at 3% of the target. Output above the target and the fee is not captured as a fee. It is swapped back to the input asset and returned to the swapper. When it is too small to swap back, or the pair has no pool to swap it back on, it is delivered in the output asset instead.

The fee is shared between two parties (75% to the protocol, 25% to referrer):

* **Protocol:** The Order Router protocol
* **Referrer:** User-facing app or service that leverages the protocol (see [Referral Program](/haystack-dev/haystack-router/referral-program.md))

If no referrer is set, the protocol receives the full fee.

Additionally, the swapper is responsible for paying all network and contract call fees. These are pooled on the swapper's input transfer, so the order router app calls in the group are sent with a fee of 0.

The app keeps its asset holdings between swaps, so an asset is opted in only once. When a route needs an asset the app doesn't hold yet, the swapper funds its 0.1 ALGO minimum balance in the group. That ALGO stays with the app.

## Order Router App V3 (legacy)

Until November 5, 2026, when the API moved every swap to [V4](/haystack-dev/haystack-router/architecture/order-router-app-v4.md), the [V3 app](/haystack-dev/haystack-router/architecture/order-router-app.md) charged fixed-input swaps the same way. On a fixed-output swap, it captured output above the target as fee, within the 3% cap: the route swapped its surplus back to the input asset when it could, and otherwise overshot the target by a few base units.
