> For the complete documentation index, see [llms.txt](https://srwa.gitbook.io/srwa-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://srwa.gitbook.io/srwa-docs/srwa-interface/interactive-blocks/lending/repay.md).

# Repay

In the repay modal, users can choose the loan they want to repay, can see their borrowed amount, current borrow APR and with the changes in the amount input field, they can see how their loan limit and borrow balance are going to change accordingly.

Repayment can be made at any time if the users have some loaned assets and have said assets in their Radix Wallet.

{% hint style="info" %}
In special circumstances there is a possibility that some or all of the interactions with the pool are restricted, which means that the repayment is not possible
{% endhint %}

<figure><img src="/files/zohH4jTuT5ULSRrEMVzs" alt=""><figcaption><p>Example of the Repay modal</p></figcaption></figure>

Click on the MAX button will fill out the amount input with the maximum allowed amount that the User can repay at the moment. MAX value for repayment is the same as the borrowed amount but it's limited with the amount of assets that User has in their wallet.

Repayment can be smaller than the amount that is borrowed in which case the borrow amount will be decreased with the repaid amount.

On the right side of the modal User can track how the proposed repayment will affect their borrow balance and loan balance limit, for example:

<figure><img src="/files/TYyWcIcPPXKoXmbdJhf3" alt=""><figcaption><p>Example of the changes in the borrow balance and max loan limit when amount input is filled out</p></figcaption></figure>

Clicking on the REPAY button sends the transaction request to the ledger and the User is informed they should open their Radix Wallet to continue.

<figure><img src="/files/ZFivPgrRhUCnP8wisgyK" alt=""><figcaption></figcaption></figure>

Upon opening the Radix Wallet app, User can see transaction details, review it and sign it to be committed.

<figure><img src="/files/hffv1xyqjgYePq8lKrrK" alt=""><figcaption><p>Example of the transaction request in the Radix Wallet</p></figcaption></figure>

Transaction can be canceled at any time before signing by clicking on the cancel button in the modal or on the X in the upper left corner in the Radix Wallet.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://srwa.gitbook.io/srwa-docs/srwa-interface/interactive-blocks/lending/repay.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
