> For the complete documentation index, see [llms.txt](https://docs.marsecosystem.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.marsecosystem.com/whitepaper/mars-defi-protocols.md).

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.marsecosystem.com/whitepaper/mars-defi-protocols.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
