# 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="https://151939035-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXipTeu714Ty8zEKpJIdy%2Fuploads%2F3GVXEZ3FhKFdzcXzFhMy%2FSupply%20and%20Borrow.webp?alt=media&#x26;token=939accac-7c9d-4fea-ae2d-9d690063418e" 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="https://151939035-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXipTeu714Ty8zEKpJIdy%2Fuploads%2FVPBrpai2AweM1QoCOQg7%2Funnamed%20(9).webp?alt=media&#x26;token=8396924e-fd3c-4249-971c-8d121ea1f2dc" 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="https://151939035-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXipTeu714Ty8zEKpJIdy%2Fuploads%2FEAEjBWLM7yxzpTa9Vfb9%2Funnamed%20(10).webp?alt=media&#x26;token=a390923e-9072-4c00-86f2-f2bc6a8fd0fc" alt="" width="390"><figcaption></figcaption></figure> <figure><img src="https://151939035-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXipTeu714Ty8zEKpJIdy%2Fuploads%2FcptvPRhInaUDVkd9ZLqh%2Funnamed%20(11).webp?alt=media&#x26;token=58f5ff3c-6539-4e72-98f9-4cb709838ce9" 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.***
