> 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/borrow.md).

# Borrow

In the borrow modal, User can choose the asset they want to borrow, can see their current borrow balance, current borrow APR and when they enter the amount, they can see how their loan limit and loan balance are going to change accordingly.

Borrow can be made at any time if the user has enough collateral and if there are enough assets in the pool.

{% 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 taking a loan is not possible
{% endhint %}

<figure><img src="/files/3YdXQdpYObdbRLblOJjH" alt=""><figcaption><p>Example of the borrow modal</p></figcaption></figure>

Click on the MAX button will fill the amount input with the maximum allowed amount that the user can borrow at the moment. MAX value for the User depends on deposit and borrow balance as well as on Loan-to-Value ratio that every pool has. Learn more about the LTV Ratio in our [Core Calculations ](/srwa-docs/core-calculations/utilization.md)section. MAX borrow value for the User is calculated using the following formula:

`user_deposit_balance * ltv_ratio - user_borrow_balance`

{% hint style="info" %}
Since we don't want for a single User to be able to empty the pool, there is one more parameter that can limit the maximal borrow amount and that is max borrow percent. Max borrow percent is the percentage of the pool that can be borrowed by a single User, so if that number is smaller than Users MAX borrow amount, then that amount will be equal to MAX.
{% endhint %}

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

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

Clicking on the BORROW 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/KJEYoPLWB5e3ZJ9DKkxy" 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/4v4vKTrOWwfXQgeAO6Ct" 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/borrow.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.
