> For the complete documentation index, see [llms.txt](https://txnlab.gitbook.io/haystack-docs/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-docs/platform/trading-fees.md).

# Trading & Fees

## Overview

Haystack charges trading fees on swaps routed through the platform. Fees are tiered by trade size, and [HAY token holders](https://txnlab.gitbook.io/haystack-docs/platform/hay-token.md#fee-discounts) receive automatic discounts. All fees are deducted from your output — what you see quoted is what you pay.

## Fee Schedule

Trading fees are calculated based on trade size. Larger trades benefit from lower percentage fees.

| Trade Size    | Fee   |
| ------------- | ----- |
| $2,500+       | 0.50% |
| $250 – $2,499 | 0.75% |
| $25 – $249    | 0.85% |
| Under $25     | 1.00% |

Fees are deducted from your output. On the swap card, the fee row shows the fee in the token you receive; click it for the full breakdown and your HAY discount.

> **Additional Fees:** The pools a trade routes through charge their own swap fees, which vary by pool and are already included in your quote. Network fees are small Algorand transaction fees (0.001 ALGO per transaction). Adding a token you don't hold yet locks 0.1 ALGO of your minimum balance.

## HAY Fee Discounts

Hold or stake HAY tokens to receive automatic discounts on all your trades. See [HAY Token — Fee Discounts](https://txnlab.gitbook.io/haystack-docs/platform/hay-token.md#fee-discounts) for discount tiers and details.

## Fee Distribution

Platform fees are distributed through the Haystack fee distribution system, which powers [HAY staking](https://txnlab.gitbook.io/haystack-docs/platform/staking.md) rewards. Fees collected in HAY go 100% to stakers. Fees collected in any other token are swapped to USDC and split:

| Recipient       | Share | Description                                   |
| --------------- | ----- | --------------------------------------------- |
| **HAY Stakers** | 70%   | Distributed proportionally to stakers in USDC |
| **Treasury**    | 25%   | Funds ongoing platform development            |
| **Buy & Burn**  | 5%    | Swapped to HAY and permanently burned         |

See [Staking](https://txnlab.gitbook.io/haystack-docs/platform/staking.md) for more detail on how rewards work.

## Fee Types

When trading on Haystack, up to four types of fees may apply depending on where and how you trade.

### Router Swap Fees

All swaps routed through the Haystack Router incur the tiered fees shown above. These apply whether you're trading on the [web app](https://txnlab.gitbook.io/haystack-docs/apps/web.md), [mobile app](https://txnlab.gitbook.io/haystack-docs/apps/mobile.md), or via the [Router API](https://txnlab.gitbook.io/haystack-docs/developers/router-api.md).

### Bonding Curve Fees

Trades on [Haystack Launch](https://txnlab.gitbook.io/haystack-docs/platform/launch.md) bonding curves incur a separate 1.5% fee charged by the bonding contract. This fee is split between the token creator (33%) and the platform (67%). See [Launch — Creator Fees](https://txnlab.gitbook.io/haystack-docs/platform/launch.md#creator-fees) for details.

> **Note:** For router-assisted trades on bonding curves, both the bonding curve fee and the router swap fee apply. HAY discounts apply only to the router swap fee, not to the bonding curve fee.

### First Stage Token Taxes

Some tokens (MOOJ, DUMBLY, DEAL, STACKED and others) are managed by First Stage, which charges its own tax when they move: MOOJ, for example, takes 9% of every sale. First Stage freezes these tokens in the wallets of holders it has registered, and a frozen holding can only trade inside First Stage's own steps. Haystack adds those steps to your trade for you, so you can buy and sell these tokens straight from a frozen holding.

* **The tax is paid to First Stage**, not to Haystack, in the same transaction as your trade. A sale pays it out of the tokens you sell: selling 1,000 MOOJ sends 90 MOOJ to First Stage and swaps the other 910. A buy pays it out of the tokens you receive.
* **Your quote is already net of the tax.** The amount you receive (or, when you buy an exact amount, the amount you pay) includes it, and **Details** shows it as **First Stage Tax**. Price impact leaves it out.
* **Sell by the amount you sell.** A sale from a frozen holding can't be quoted by the exact amount you want to receive: enter the amount of the token to sell instead.
* **First Stage's steps add about 0.03 ALGO** of network fees.
* Router swap fees still apply, on the part of the trade that is swapped.
* A holding First Stage hasn't frozen trades like any other token, without the tax.

### Network Fees

Standard Algorand network fees of 0.001 ALGO per transaction. Typically 0.005–0.02 ALGO total per trade depending on the number of transactions in the group.

## Slippage Protection

Slippage is the difference between the quoted price and the execution price, caused by other trades executing between your quote and your transaction.

When you trade, you set a **slippage tolerance** (default: 5%) in Settings, under Trading. This sets a minimum acceptable output. If the actual output falls below this threshold, the transaction automatically reverts and your tokens stay in your wallet. Settings warns you when slippage is above 5%.

Price impact is shown with your quote: in amber from 3% and red from 10%.

| Setting                 | Trade-off                                                               |
| ----------------------- | ----------------------------------------------------------------------- |
| Lower slippage (1–2%)   | Better price guarantee, but more likely to fail if the market moves     |
| Default slippage (5%)   | Good balance for most trades                                            |
| Higher slippage (5–10%) | More likely to succeed, but you accept a wider range of possible prices |

For large trades or volatile tokens, consider increasing slippage slightly. For stable, low-volume tokens, you can reduce it.

**First Stage tokens:** slippage protects the swap, not the [tax](#first-stage-token-taxes), which is fixed when the trade is built. On a buy, the tax is charged on the quoted output, so the minimum received in Details is the output at your slippage less that tax.

**Router-assisted trades** on bonding curves have slippage protection on both legs independently — the bonding curve and the DEX route each have their own minimum output thresholds, providing full protection across the entire multi-step trade.

## FAQs

<details>

<summary>Are fees taken from my input or output?</summary>

Fees are deducted from your output. The amount you send is the amount that enters the swap — the fee is taken from what you receive.

</details>

<details>

<summary>Do HAY discounts apply to bonding curve fees?</summary>

No. HAY discounts apply only to router swap fees. Bonding curve fees are set by the Launch contract and are not discountable.

</details>

<details>

<summary>Why does selling MOOJ quote about 9% less than I expected?</summary>

MOOJ is a [First Stage token](#first-stage-token-taxes) with a 9% sell tax, which First Stage takes when the tokens leave a holding it has frozen. Your quote is already net of it, and Details shows it as **First Stage Tax**. The tax goes to First Stage, not Haystack.

</details>

<details>

<summary>Are there any minimum trade amounts?</summary>

No minimum trade amounts. However, smaller trades (under $25) have a slightly higher fee percentage.

</details>
