# How to Repay a Loan?

* First, Let's connect your wallet!
* Step 1: Navigate to the Yield Aggregator menu
* Step 2: Choose the token you want to Repay and click on its Borrow APR.

<figure><img src="/files/bq1xE8SJ63OsDGqz8YAT" alt="" width="482"><figcaption></figcaption></figure>

* Step 3: On the Supply list, enable toggle My Borrow
* The screen only shows your borrow list.
* Choose the deal you want to repay tokens
* Click the Modify button on your selected deal.

<figure><img src="/files/V7oewD6PR5EuRVXlSYUk" alt="" width="494"><figcaption></figcaption></figure>

* Step 4: On Modify Screen (Each protocol will display different types of information) :you enter the details of the loan you want to retain:&#x20;
* Select the collateral token : You can keep the current one or choose a different token
* Update the collateral amount: you can keep it the same, increase, or decrease it
* Enter the amount you want to retain in the loan
  * If the amount you enter is greater than the current value of the loan: you are borrowing more.
  * If the amount you enter is less than the current value of the loan: you are repaying part of the loan.
  * If the amount you enter is 0: you are repaid everything.

<div><figure><img src="/files/OCZafoM8lD2rXVqNNdXJ" alt="" width="390"><figcaption></figcaption></figure> <figure><img src="/files/4gnAFNYdnlJrVgYeQBfO" alt="" width="391"><figcaption></figcaption></figure></div>

* Click Modify or Repay button:
  * Note: Be cautious not to let the health factor value drop too low. Because The loan will be liquidated if the health factor reaches 1
* Sign the transaction on your wallet
  * Note: ***All transactions are built and interact directly with the smart contract of the protocol you select.***


---

# 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.dano.finance/how-to-use/guides/yield-aggregator/how-to-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.
