# Gas-free Swaps

Traders pay two types of fees when using a DEX: Gas fees for the network and exchange commission for the DEX. While the latter is reserved for the protocol treasury, gas fees are required for preventing malicious actors from spamming the chain, and incentivizing nodes to create blocks.

Mangata allows traders to save money by only charging a single fee: Because Mangata is an appchain, the rules of the chain can be changed and it’s possible to remove the gas fees altogether. Mangata utilizes the exchange commission as spam protection and eliminates the gas fee.

## **The Gas Structure on Mangata X**

<figure><img src="/files/sknJKAFUmzYTH2YvcRCZ" alt="" width="563"><figcaption></figcaption></figure>

* For swap transactions involving a whitelisted token pair (against MGX), and the trade value above a certain threshold (10,000 MGX) the no-fee mechanism applies.
* For swap transactions with a value lower than the threshold, a locking mechanism is used where a certain amount of MGX tokens (50 MGX per transaction) are locked on the user’s balance for 24 hours.

If a user sends another transaction during the lock period, the locked amount and the time period are increased. Tokens can be unlocked through either a swap transaction or a free, designated unlock extrinsic.


---

# 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.mangata.finance/welcome/litepaper/gas-free-swaps.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.
