> For the complete documentation index, see [llms.txt](https://docs.agilely.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agilely.io/guide/v0.3-user-guide/mint/close-your-vault.md).

# Close your vault

1. Connect your wallet and navigate to your Vault page (in our case: mockETH Vault).

<figure><img src="/files/iBsp2kBc2XLDKOejmao5" alt="" width="375"><figcaption><p>Vault Page</p></figcaption></figure>

2. Click on "Close," and you'll be directed to a page displaying all the details of your vault. Since you're closing the vault, make sure you have enough USDA in your wallet. For instance, if you borrowed 2000 USDA, you'll need to have 2210 USDA in your wallet to complete the vault closure. Wondering why 2210? It's calculated by adding 2000 (borrowed amount) + 10 (0.5% borrowing fee + Dynamic fee) + 200 (gas compensation, which will be refunded in our case as no liquidation occurred).

<figure><img src="/files/wdUHqzKyTGH2LiQDyTW5" alt="" width="375"><figcaption><p>Close your vault</p></figcaption></figure>

2. If your wallet contains enough USDA, you're ready to close the vault by clicking on "Close Vault." If you're short on USDA, you can select "pay debt with collateral" and then hit "Swap & Close Vault."

That's it – you're all done!


---

# 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:

```
GET https://docs.agilely.io/guide/v0.3-user-guide/mint/close-your-vault.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.
