# Repay and close FXD position

You can use the **Manage Position** functionality to **Repay** and **Close Position.** This may be done to **manage the position risk**.

* Go to Fathom [DApp](https://dapp.fathom.fi/).
* Connect your Web3 wallet (such as [MetaMask](https://metamask.io/)) and make sure your network is set to the intended chain (i.e., [XDC](https://chainlist.org/chain/50)).
* Opened positions are shown in "**Your Positions"**. Click "**Manage Position"** on the position you want to close.

<div data-full-width="true"><figure><img src="/files/Oe18mUBdVXTjrJLIFTNf" alt=""><figcaption></figcaption></figure></div>

* Enter the amount of FXD you would like to repay.
* The amount of collateral that you receive is calculated automatically. If you want to keep some collateral - enter the amount of it.

<figure><img src="/files/U1TtNIOcvqyMyHjgYvX1" alt=""><figcaption></figcaption></figure>

* Click "**Repay this Position**"
  * You may be required to approve the FXD transfer before the actual transfer (depending on the previously approved value).
  * Sign and send the transaction in your Wallet.
  * Wait for the transaction to be processed.
  * Once the transaction has gone through, you'll see your adjusted FXD position in "**Your Positions"** on the same page below "**Available Pools"**. If you take back all collateral, your position will disappear from the list.

<figure><img src="/files/RBgDYoqRG5RiWBM4THk8" alt=""><figcaption></figcaption></figure>


---

# 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.fathom.fi/fxd-stablecoin/user-guides/repay-and-close-fxd-position.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.
