> For the complete documentation index, see [llms.txt](https://udonfi-1.gitbook.io/udonfi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://udonfi-1.gitbook.io/udonfi-docs/core-concepts/core-fee.md).

# Core Fee

## Fee Breakdown

[Direct link to heading](#fee-breakdown)

UdonFi applies a flat **0.1% fee** on specific actions to support protocol sustainability and treasury growth. These fees are transparently applied and enforced on-chain.

Only the following actions incur a fee:

| Action       | What Happens                                                                              | Example                                                                                          |
| ------------ | ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| **Supply**   | No fee applied. You deposit the full amount.                                              | You supply **100 CHR** → receive **100 CHR** in protocol.                                        |
| **Withdraw** | **0.1% fee** deducted from the amount you withdraw.                                       | You withdraw **100 CHR** → receive **99.9 CHR**, **0.1 CHR** goes to **UdonFi treasury**.        |
| **Borrow**   | **0.1% fee** taken upfront; debt reflects full amount.                                    | You borrow **100 CHR** → receive **99.9 CHR**, debt shows **100 CHR**.                           |
| **Repay**    | **0.1% fee** applied to what you repay. Only **99.9%** of the repaid amount reduces debt. | You repay **100 CHR** → only **99.9 CHR** counts. To repay **100 CHR** debt, send **100.1 CHR**. |

{% hint style="info" %}
Formula for full debt repayment:

To fully repay a debt of `X`:

Repay amount = X × 100 / (100 − fee percentage)

At the current fee of **0.1%**, this simplifies to:

Repay amount = X × 100 / 99.9
{% endhint %}

***

## Why It Matters

[Direct link to heading](#why-it-matters)

These fees:

* Prevent spam and misuse of protocol functions
* Grow the treasury for future incentives and upgrades
* Keep UdonFi lean, sustainable, and community-aligned

Only three actions are charged: **withdraw**, **borrow**, and **repay**. **Supplying is always fee-free.**

Last updated 2 months ago

[Direct link to Fee Breakdown](#fee-breakdown)


---

# 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://udonfi-1.gitbook.io/udonfi-docs/core-concepts/core-fee.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.
