# How to exit your Earn position via Uniswap

NOTE: this functionality is also available via the [Dashboard](https://markets.mortgagefi.app/dashboard)

Navigate to the Earn page and select the Enter/Exit via Uniswap button

This modal simply contains the Uniswap interface which should be pre-populated with the mortgageFi&#x20;synthetic stable coin related to the selected vault (token example mf-e-usdc-cbbtc)

The token address and ticker will also be displayed beneath the modal if the site fails to populate the&#x20;Uniswap dropdown fields

<mark style="color:orange;">(i)</mark> Ensure the trading direction is setup to buy the mortgageFi synth by toggling the direction arrow if needed

<mark style="color:orange;">(ii)</mark> Input the amount of stable coin you wish to purchase the Earn token with. The amount of Earn token will be displayedin the field below

<mark style="color:orange;">(iii)</mark> Click Review

<div align="left"><figure><img src="/files/TQkcF98j84l9ImKEUQAe" alt="" width="375"><figcaption></figcaption></figure></div>

<mark style="color:orange;">(i)</mark> Click Approve and Swap

<div align="left"><figure><img src="/files/a44aTchHCg3xpZhIWggD" alt="" width="375"><figcaption></figcaption></figure></div>

The transaction progress window will appear and guide you through the approval and transaction

<div align="left"><figure><img src="/files/KRVVxgpHc7YaXvSLBJpo" alt="" width="375"><figcaption></figcaption></figure></div>


---

# 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://mortgagefi-docs.gitbook.io/mortgagefi-documentation/getting-started/tutorials-step-by-step/how-to-exit-your-earn-position-via-uniswap.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.
