# Fee Structure

When executing a swap on **Optimex**, three types of fees may apply to your transaction. These fees ensure smooth operation, security, and sustainability of the protocol while maintaining competitive pricing compared to other trading platforms. Below is a breakdown of each fee type:

### <mark style="color:orange;">1. Network Fee (Blockchain Transaction Fee)</mark>

The **network fee** covers the cost of processing transactions on the blockchain. Each trade involves an **on-chain transaction**, which incurs a standard **network fee**. The actual fee depends on factors such as:

* **Network congestion** – Higher traffic increases fees due to competition for block space.
* **Transaction size** – Larger transactions require more block space and result in higher fees.

🔹 ***Optimex** does not take any portion of the network fee. It is paid directly to blockchain miners or relevant blockchain validators*

### <mark style="color:orange;">2. Protocol Fee</mark>

Users pay a **protocol fee** when swapping tokens on **Optimex Swap**, which serves as the protocol's main revenue source. Revenue is allocated to compensate the **Validator Network** and fund **research and development**.

Since **Optimex** focuses on **BTC trading**, all pairs involve BTC and an asset on a **smart contract-enabled blockchain.** The protocol fee will be collected in the non-BTC asset:

* **BTC → Other Asset:** The fee is deducted from the PMM’s payment to the user.
* **Other Asset → BTC:** The fee is collected via the **Optimex Vault smart contract** before final settlement from such Vault to the PMM.

#### **Fee Structure**

* **0.02%** for **BTC-WBTC** (or other wrapped BTC pairs).
* **0.1%** for all other pairs.

### <mark style="color:orange;">3. Affiliate Fee</mark>&#x20;

If users access **Optimex** through an affiliate **interface** (e.g., a wallet, DEX aggregator, or other DeFi service integrating **Optimex**), an affiliate fee may be applicable. This fee is collected by the affiliate, independent from the protocol fee and is paid by the users.&#x20;

🔹 *No affiliate fee is applied on* [*Optimex's interface*](https://app.optimex.com/)*.*

### <mark style="color:orange;">4. Bridging Fee (only for swaps from or to EVM-compatible chains)</mark>

When swapping between **BTC and an EVM-compatible chain other than Ethereum**, a small dynamic **bridging fee** is applied by our partner, [**Across**](https://across.to/). You can find the full fee formula and details here: <https://docs.across.to/reference/fees-in-the-system>


---

# 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://docs.optimex.com/optimex-revolutionizing-bitcoin-finance/optimex-swap/optimex-swap-how-it-work/fee-structure.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.
