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

# Fees & Rewards

## Swap fees

Swap fees are fees paid by swappers to liquidity providers, to compensate them for providing liquidity used to fulfill incoming swap orders.

Swap fees are configured at a market level and paid between traders and liquidity providers. For example, a market with a swap fee of 0.5% will distribute the first 0.5% of incoming swaps to active positions before executing the swap.&#x20;

Swap fees can be specified as:

1. a **fixed rate**, set at the point of market creation, or
2. a **variable rate**, provided by an external adapter contract. This offers the flexibility to incorporate external data feeds (e.g. realised volatility) in setting swap fees.

## Vault fees

Vault fees are management fees charged on user withdrawals from Vaults. They are implemented by Vaults as part of the external smart contract logic, and not prescribed nor enforced by Haiko.&#x20;

Official Haiko Vaults will charge a small fee (0.5%) on withdrawals. We expect this to be the primary revenue source for the protocol to fund development and operating costs.

## Incentives

We will actively reward early users and community contributors. Once protocol tokens come live on Starknet, we will also allow token rewards to be streamed to Haiko markets to incentivise liquidity provision and trading.

We currently maintain a [leaderboard](https://app.gitbook.com/o/93iSXojwW5FIIJRO5tSg/s/gQw40yNaDQ8b6I9fTxtG/~/changes/20/info/leaderboard) to track our top users. You can earn points by interacting with the Haiko protocol. Points are calculated based on the sum of:

1. Fees paid on swaps
2. Fees earned on filled liquidity positions, including those managed through [Strategy Vaults](broken://pages/BhMQHP2mjCMkldkZH7pQ)

Users will also earn a 20% share of any points earned by users they refer. To find your unique referral link, visit the [Leaderboard](https://app.haiko.xyz/leaderboard) page.


---

# 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://haiko-docs.gitbook.io/docs/protocol/amm/fees-and-rewards.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.
