# How to Close a Loan

To close a loan on GVNR Diamond Hands and unlock your BTC collateral, you must fully repay the UCD you borrowed.

Here’s how it works:

1. Return the full amount of UCD originally minted from your vault back into the protocol.
2. Once the UCD debt is fully repaid, the loan position is considered closed.
3. The smart contract will then release your Bitcoin, making it withdrawable to your connected wallet

If only part of the UCD is repaid, the position remains open, and the BTC collateral stays locked. No collateral is released until 100% of the debt is cleared.

This ensures that all UCD in circulation remains fully backed by Bitcoin, maintaining the integrity of the protocol and the value of UCD.


---

# 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.gvnr.xyz/diamond-hands/how-to-close-a-loan.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.
