# Repay a loan

{% tabs %}
{% tab title="Step 1 - Connect" %}

### Connect wallet

You will first need to connect your Solana wallet to the application. Simply click connect wallet, select your wallet provider, and approve the prompt from your wallet provider to connect to the website.

![](https://2213538240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxClA4ViEZ3CcRvINtyy%2Fuploads%2FJCqdtpfjLQNKA6VkoBTW%2Fimage.png?alt=media\&token=cb5f8c05-c2f1-4c14-8bb2-6c4912991c02)
{% endtab %}

{% tab title="Step 2 - Market selection" %}

### Select a market

Head over to the borrow page, where you will see a list of available markets.

<figure><img src="https://2213538240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxClA4ViEZ3CcRvINtyy%2Fuploads%2FuuJhEeqFyIx07FZH0yAY%2Fimage.png?alt=media&#x26;token=d8170b83-602f-48bf-b03f-808d96f352fb" alt=""><figcaption></figcaption></figure>

Each market serves an NFT collection, select a market for an NFT that you own, and your NFTs from the selected collection will show up on the right.
{% endtab %}

{% tab title="Step 3 - Repay form" %}

### Access the repay form

Once you select a market, you will be prompted with the borrow form of your current loan in that market.

![](https://2213538240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxClA4ViEZ3CcRvINtyy%2Fuploads%2FZUadbO9m4XoPAoT1px2T%2Fimage.png?alt=media\&token=2c8e2c8c-8a8f-4af3-a8ef-e663ce5a68c3)

Select the `REPAY` tab at the top, to access the repay form.

![](https://2213538240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxClA4ViEZ3CcRvINtyy%2Fuploads%2FU7md0cIIs8N09zlRbvs6%2Fimage.png?alt=media\&token=59665573-0259-4cbc-9e63-c3ae97c65c5b)
{% endtab %}

{% tab title="Untitled" %}

### Repay partially

You can repay part of your debt in order to bring down your risk level and avoid liquidation.

![](https://2213538240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxClA4ViEZ3CcRvINtyy%2Fuploads%2FJFJgZf7WN5BiSP0uUFqB%2Fimage.png?alt=media\&token=4a101267-e3aa-4578-9773-92b0e5777606)

On the repay form, the slider adds SOL to your position. As you slide it, you will notice the values on the right side change, giving you a preview of what your loan will look like if you confirm the repayment.<br>

### Repay in full

To fully repay your loan, and withdraw collateral, click on the `100%` at the right of the slider, or bring the slider all the way to the right.\
\
![](https://2213538240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxClA4ViEZ3CcRvINtyy%2Fuploads%2FB7SOnIVO2HWGV3AimYFc%2Fimage.png?alt=media\&token=ea6d1ab5-a6fb-44df-99b7-d6bab25e91f4)<br>

This will bring your risk level back to 0%, allowing you to withdraw the NFT. Click the `REPAY` button, and approve the wallet transactions.\
\
Once the transaction has gone through, you will see a `CLAIM NFT` button. Click it to receive the NFT you originally deposited back into your wallet.\
\
![](https://2213538240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxClA4ViEZ3CcRvINtyy%2Fuploads%2F1AO4BjWR4UY4sK1ciJsM%2Fimage.png?alt=media\&token=07ee1fcd-d6a9-4dd3-8a2f-13fe4970d114)
{% endtab %}
{% endtabs %}


---

# 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.honey.finance/tutorials/tutorials/repay-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.
