# Mars DeFi protocols

The Mars DeFi protocols include the DeFi platforms such as **Mars Swap** and **Mars StableSwap** that are necessary for <img src="/files/-MaL1rDPyel_LgIs5AT-" alt="" data-size="line"> USDm to realize the basic functions of a stablecoin — being a medium of exchange and store of value.

## Mars Swap

Mars Swap is a Uniswap-type AMM DEX ( Automated Market-Maker Decentralized Exchange)

Mars Swap incentivizes liquidity provision and transactions of <img src="/files/-MaL1rDPyel_LgIs5AT-" alt="" data-size="line"> USDm through protocol implementations such as liquidity mining and trade mining programs.

The transaction fee on Mars Swap is 0.3%, **0.25% goes directly to LP and 0.05% goes to** <img src="/files/-MaL1xmJC9-wKVpArShS" alt="" data-size="line">**XMS holders who stake XMS at Mars Swap**. The specific method of distributing transaction fees to XMS stakers is to repurchase XMS with transaction fees directly at market value and redistribute them.&#x20;

The design that <img src="/files/-MaL1xmJC9-wKVpArShS" alt="" data-size="line"> XMS stakers can obtain **Mars Swap** transaction fees is one of Mars Ecosystem's solutions to the positive externality problem; a central issue withing many other stablecoin protocols. The value generated by   <img src="/files/-MaL1rDPyel_LgIs5AT-" alt="" data-size="line"> USDm circulation in the DeFi world can also **be captured** by Mars Ecosystem's governance token <img src="/files/-MaL1xmJC9-wKVpArShS" alt="" data-size="line"> XMS. This design also provides **additional value support for XMS**, **which in turn helps ensure the stability of** <img src="/files/-MaL1rDPyel_LgIs5AT-" alt="" data-size="line">**USDm**


---

# 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.marsecosystem.com/whitepaper/mars-defi-protocols.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.
