> 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**
