# How to Repay

<figure><img src="/files/FOevYcXgZ5kg4fnPySiB" alt="" width="375"><figcaption></figcaption></figure>

Click onto the asset you wish to repay and choose **“Repay”** in the pop-up.

1. You may choose to repay an exact quantity or the entire loan (click "**MAX**"). If you select "**MAX**" in the repayment toggle but do not have sufficient funds to close the position, the protocol will calculate the maximum repayment possible from your wallet balance.
2. Please observe the corresponding changes to your borrow utilization. Once you confirm the parameters and changes in your borrowing metrics, click **“Repay”.**
3. Once the transaction is successful, your outstanding borrow and borrowing utilization will be updated.


---

# 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.loanshark.tech/loanshark-core/borrow/how-to-repay.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.
