> For the complete documentation index, see [llms.txt](https://docs.mmex.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mmex.io/for-traders/start-trading/swap.md).

# Swap

<figure><img src="/files/yFoAHGoaFvM0zQqRFPeP" alt="" width="337"><figcaption></figcaption></figure>

The swap function is as easy to use as any other defi protocol swap and users can choose any two index assets to swap.

**Swap fee**

The swap fee is a range of rates depending on whether the asset you are swapping is overweight or underweight in the MMLP pool relative to a pre-determined percentage.

The range of fee rates varies from \[0.01%, 0.1%].

For example, suppose the pre-set percentage of ETH is 35% and the current total ETH position is approximately 37%. On the other hand, the pre-determined proportion of USDT is 25%, but the current USDT has a proportion of only 20%. If you use USDT to exchange ETH, this means that you are helping to rebalance the MMLP pool, so it will only charge a very small fee in such circumstances.
