> 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/zhong-wen/bai-pi-shu/mars-defi-xie-yi.md).

# Mars DeFi协议

Mars DeFi协议包括**Mars Swap**， **Mars StableSwap**等USDm在实现其交易媒介、价值贮存等稳定币基本功能时所必需的DeFi组件。&#x20;

## Mars Swap

Mars Swap是一个Uniswap类型的AMM DEX。

Mars Swap通过流动性挖矿和交易挖矿等激励手段促进对 <img src="/files/-MaL1rDPyel_LgIs5AT-" alt="" data-size="line"> USDm的流动性提供和交易等需求。

Mars Swap上的交易费用为0.3%，其中**0.25%给LP**，**0.05%给在Mars Swap质押** <img src="/files/-MaL1xmJC9-wKVpArShS" alt="" data-size="line"> **XMS的XMS持有者**。向XMS质押者分发交易费用的具体方式为在市场上用交易费用回购XMS再分发。

XMS质押者可以获得Mars Swap交易费用的设计是Mars Ecosystem对稳定币协议正外部性问题的一个解： <img src="/files/-MaL1rDPyel_LgIs5AT-" alt="" data-size="line"> USDm在DeFi世界中流转产生的价值也可以被Mars Ecosystem的治理币 <img src="/files/-MaL1xmJC9-wKVpArShS" alt="" data-size="line"> XMS所**捕获**。这种设计也为XMS**提供了额外的价值支撑，有利于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/zhong-wen/bai-pi-shu/mars-defi-xie-yi.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.
