# Fees

xWIN Finance introduces asset management fees in a transparent and decentralized way. All managed funds and strategies include fees. Additionally, funds may include a performance fee to incentivize managers to achieve results.

All 3 fees are calculated based on the time past which is calculated based on how many blocks have passed. To save gas, the code calculates the fees when the manager calls the fund to withdraw their fees.

There are 4 fees used in xWin Finance. As each fund differs in its own ways, the fees also reflect this nature. The strategy fees and performance fees are shared between the partner fund manager and xWin Finance.

**Platform Fee**

The platform fee is maxed at 1% of the fund and is used for the development of xWin Finance.

**Strategy Fee**

The max for strategy fee is 3% and is calculated yearly.

**Performance Fee**

There are two different performance fees depending on the fund: book cost vs High Water Mark. The max for the performance fee is 20% and is calculated periodically if it is a high water mark and book cost is calculated when the user withdraws.

**Swap Fee**

When the user uses xWin Finance to swap between tokens in any vault, the xWin Finance has a swap fee of 0.1% or less depending on the time and token.


---

# Agent Instructions: 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:

```
GET https://doc.xwin.finance/fees.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
