> For the complete documentation index, see [llms.txt](https://docs.dano.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dano.finance/how-to-use/guides/yield-aggregator/how-to-repay-a-loan.md).

# 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.***
