> For the complete documentation index, see [llms.txt](https://docs.miragefi.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.miragefi.org/protocol/fees.md).

# Fees

What the protocol charges, who pays it, and where the money goes.

MirageFi charges explicit fees at the point where value changes hands, and each one is itemised on the ticket. There is no hidden markup and no payment for order flow.

| Fee                    | Rate (initial)                                                              | Paid by                            | When         |
| ---------------------- | --------------------------------------------------------------------------- | ---------------------------------- | ------------ |
| Vault swap fee         | 2 bps of notional, included in the quoted all-in price but shown separately | Trader                             | Per fill     |
| Vault spread share     | 10% of the spread the vault realises                                        | LPs (netted out of spread revenue) | Per fill     |
| RFQ settlement fee     | 2 bps of notional                                                           | Trader                             | Per RFQ fill |
| Deposit and withdrawal | None                                                                        |                                    |              |

A token-to-token swap in two legs pays the fee on each leg. Every rate is a `ParamController` value, changeable only through the timelock with a published rationale, and never applied retroactively: the fee that applies is the fee in force at the moment of the fill.

## The quote is the invoice

Before signing, every ticket shows mid, spread and fee as separate figures in bps and USDG, and the fill event writes the same breakdown on-chain. When a fee changes through the timelock, the change appears in the governance log before it appears on any ticket.

## Where fees go

Fees accumulate in the `FeeCollector` contract and pay for audits, the bug bounty, oracle and infrastructure costs, and operations. Once the governance module assumes parameter control, it directs the allocation. See [Parameter governance](/transparency/governance.md).

## Economics at scale

Assuming 10M USDG of average daily volume and an average all-in half-spread of 12 bps:

* Swap and RFQ fees: 10M × 2 bps × 365 ≈ 730K USDG per year.
* Spread share: 10M × 12 bps × 10% × 365 ≈ 438K USDG per year.

That is roughly 1.2M USDG per year at volumes that are modest relative to the growth of the asset class. Running the same arithmetic at 50M daily gives about 5.8M USDG per year. See [Business model](/resources/business-model.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.miragefi.org/protocol/fees.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
