> For the complete documentation index, see [llms.txt](https://docs.enoxswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enoxswap.com/getting-started/fees.md). Agents can also search and read this documentation through its [MCP server](https://docs.enoxswap.com/~gitbook/mcp).

# Fees

## Protocol fee

| Parameter                             | Default            | Hard limit in the contract                 |
| ------------------------------------- | ------------------ | ------------------------------------------ |
| Swap fee (`feeBps`)                   | **0.10%** (10 bps) | 1.00% (`MAX_FEE_BPS = 100`)                |
| Referral share (`referralShareBps`)   | **20%** of the fee | 50% of the fee (`MAX_REFERRAL_BPS = 5000`) |
| Add-liquidity fee (`addLiquidityFee`) | 0                  | 1 native coin (`MAX_ADD_LIQUIDITY_FEE`)    |
| Pay direct fee (`directFeeBps`)       | 0                  | 1.00% (`MAX_DIRECT_FEE_BPS = 100`)         |

The fee is taken from the **input** amount before the swap. So on a 100 BNB swap with a 0.10% fee, 0.10 BNB is the fee and 99.90 BNB is swapped.

{% hint style="info" %}
These are on-chain values the owner can change, but never above the hard limits. Read the live values from the contract: `feeBps()`, `referralShareBps()`, `addLiquidityFee()`.
{% endhint %}

## Where the fee goes

![Where the swap fee goes](https://1273857689-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9EGjsXxqcGhGQ6XWd4Uo%2Fuploads%2Fgit-blob-f5bfb568c248d8160facfce669f37c580a6a48c3%2Ffee-split.png?alt=media)

* If you have **no referrer**, the whole fee is credited to the fee account.
* If you have a **referrer**, they are credited `referralShareBps` of the fee. The rest is credited to the fee account.
* The referral share comes out of the protocol fee. **It does not raise what you pay.**

Fees are **accrued**, not pushed. Recipients withdraw them with `claimETH()` or `claimToken(token)`. This pull pattern means a reverting or blacklisted recipient can never block anyone's swap.

## Network gas

On top of the protocol fee you pay the normal network gas of the chain you trade on, in that chain's native coin.

## DEX trading fees

The router that executes your trade charges its own LP fee (for example 0.3% on Uniswap V2 pools; it varies by DEX). That fee is already included in the quote you see; EnoxSwap does not add to it.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.enoxswap.com/getting-started/fees.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
