> For the complete documentation index, see [llms.txt](https://docs.fathom.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fathom.fi/fxd-stablecoin/soft-pegging-to-the-us-dollar.md).

# Soft-Pegging to the US Dollar

**How pegging works**

When the price of FXD on some market (DEX or CEX) is less than $1, the arbitrageurs are looking for an incentive to arbitrage it with the market, which has a price closer to or more than $1. The below images show how the FXD price is pegged from time 0 to time 2.

<div><figure><img src="/files/a1ADjA5SQhDf44gD1Kn0" alt=""><figcaption></figcaption></figure> <figure><img src="/files/TFthge5edtYHU82GYwZ0" alt=""><figcaption><p>Pegging when FXD &#x3C; $1</p></figcaption></figure> <figure><img src="/files/2l3OVDwWEEQki72j1EH8" alt=""><figcaption></figcaption></figure></div>

When the market price of FXD is greater than $1, it provides an incentive to sell FXD in the market. The below images show how the FXD price is pegged from time 0 to time 2.

<div><figure><img src="/files/UWfWWOpbC9O9ruwNuAhW" alt=""><figcaption></figcaption></figure> <figure><img src="/files/a2hNaRkKN5Ef7igVC2Wm" alt=""><figcaption><p>Pegging when FXD > $1</p></figcaption></figure> <figure><img src="/files/QF4FPPUzxHKlgF6ka3SC" alt=""><figcaption></figcaption></figure></div>

StableSwapModule (SSM) is the special mechanism developed by the Fathom team to provide an additional incentive for arbitrageurs.

<figure><img src="/files/A5BbywhW0I34Cgjg6KcD" alt=""><figcaption><p>Stable Swap Module (SSM</p></figcaption></figure>


---

# 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.fathom.fi/fxd-stablecoin/soft-pegging-to-the-us-dollar.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.
