# BORROW

The **BORROW** page can be used to borrow Terra stablecoins from Anchor. The protocol requires users to provide bAsset tokens as collateral before making a loan. To create bAssets from your staking tokens, see  the [BOND page guide](https://docs.anchorprotocol.com/anchor-2/user-guide/webapp/bond).&#x20;

Borrows can be made until the loan's borrowing usage reaches the borrowing limit, calculated based on collateral types, their prices, and deposit amount. Loans with a borrowing usage higher than the borrowing limit can be liquidated, and thus it is important for borrowers to closely maintain their borrowing usage as changes in collateral prices may occur.

{% hint style="info" %}
As of March 17th, 2021, Anchor only supports Terra USD as the base currency.
{% endhint %}

The **BORROW** page displays:

* **Collateral Value**: Total USD-denominated value of all collaterals provided by user.<br>

* **Borrowed Value**: Total USD-denominated value of Terra stablecoins borrowed by user.
  * **Borrowed**: Total amount of Terra stablecoins borrowed by user.

* **Net APY**: Net annualized percentage yield (APY) on borrows from both Borrow APR and Distribution APY
  * **Borrow APR**: Current annualized percentage rate (APR) of borrow interest.
  * **Distribution APY**: Current APY of ANC distribution to borrowers<br>

* **Loan Position Graph**: Displays the [risk ratio](https://docs.anchorprotocol.com/anchor-2/protocol/loan-liquidation#collateral-liquidation) of user's loan position.
  * **Borrow Limit**: Maximum USD value borrowable by user based on provided collaterals.
  * **Borrowed Value / Borrow Limit Ratio**: Ratio value that signals user loan position's liquidation riskiness. Calculated by dividing user's borrowed value with their borrow limit.

## Providing bAsset collateral

{% hint style="info" %}
Users should first obtain bAsset tokens in order to utilize them as loan collateral. bAsset minting can be done at the [**BOND**](https://docs.anchorprotocol.com/anchor-2/user-guide/webapp/bond) page in Anchor WebApp.
{% endhint %}

1\. Navigate to the **BORROW** page.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2Fz0dP3e26K7k4iNDiKvkJ%2FScreenshot%202022-02-07%20at%209.02.54%20PM.png?alt=media\&token=28b3c9aa-954c-4cd1-8be2-305982b524c4)

2\. Decide a bAsset collateral to deposit and click **\[Provide]**.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FLQVnfdwoJm13wVjElxe6%2FScreenshot%202022-02-07%20at%209.13.00%20PM.png?alt=media\&token=08e42dfe-698f-45da-90b3-4248287e12a9)

3\. Enter the amount of collateral to provide. If the user already has a loan position, the provide amount can also be specified by selecting the loan's target borrow usage ratio via the slider bar. Click the **\[Proceed]** button to confirm.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FToaA7JI6yLlcQCbTSPuN%2FScreenshot%202022-02-07%20at%208.52.07%20PM.png?alt=media\&token=97f05210-0ae0-43ad-b554-90dbe06cc4f2)

4\. Station Extension should prompt you to sign a transaction that contains the collateral provide operation. Confirm the details presented and enter your password to sign.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FEs9gxfh6GqR5oHsFvd35%2FScreenshot%202022-02-07%20at%208.53.02%20PM.png?alt=media\&token=96254cb7-a830-4f90-809e-68c7c4a37d27)

5\. Collateral provide complete.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FViY44ZwtFTDJqrxXC25u%2FScreenshot%202022-02-07%20at%208.54.20%20PM.png?alt=media\&token=1e89854c-2aa5-4ac3-96de-b625b582d186)

## Borrowing Terra stablecoins

1\. Navigate to the **BORROW** page.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FlQxNqCPBwCbDSktXMoYr%2FScreenshot%202022-02-07%20at%209.02.54%20PM.png?alt=media\&token=1ab945d6-47ca-4fc3-878b-237817ce2eaf)

2\. Click **\[Borrow]**.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FB4SD8m9GiMS5l4GboVdI%2FScreenshot%202022-02-07%20at%209.00.41%20PM.png?alt=media\&token=82c717a2-4762-4784-96c4-193076cdc5f7)

3\. Enter the amount of stablecoins to borrow. The borrow can also be specified by selecting the loan's borrow usage via the slider bar, up until the borrow limit. Click the **\[Proceed]** button to confirm.&#x20;

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2F5bZPLn9YJGSelCmoq2vA%2FScreenshot%202022-02-07%20at%209.05.42%20PM.png?alt=media\&token=711e8b98-4ff7-4946-a751-4dae02d6fb6f)

4\. Station Extension should prompt you to sign a transaction that contains the borrow operation. Confirm the details presented and enter your password to sign.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FZ7beT0wBsorkTWVFWTI0%2FScreenshot%202022-02-07%20at%209.08.54%20PM.png?alt=media\&token=31ea867e-b1f9-4984-816e-d298987722a8)

5\. Borrow complete.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2F5nRGisDmasXpLjV8zMUN%2FScreenshot%202022-02-07%20at%209.10.04%20PM.png?alt=media\&token=555420fb-47e8-4e63-a8fe-e7b8ef5639f6)

## Repaying borrowed Terra stablecoins

1\. Navigate to the **BORROW** page.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FjbDoGJrctL0jINY18DTP%2FScreenshot%202022-02-07%20at%209.15.46%20PM.png?alt=media\&token=1610d461-87c1-48a8-a92b-ad1c998e23f7)

2\. Click **\[Repay]**.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FvXaiWVfjZeip86PD2fgW%2FScreenshot%202022-02-07%20at%209.15.46%20PM.png?alt=media\&token=c21a89c8-80fe-4f5a-ba8b-0708f53b0316)

3\. Enter the amount of stablecoins to repay. The repay amount can also be specified by selecting the loan's borrow usage ratio via the slider bar, up until the current borrow usage amount. Click the **\[Proceed]** button to confirm.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FWoU6O79xNM7hhqAKQbol%2FScreenshot%202022-02-07%20at%209.18.46%20PM.png?alt=media\&token=b114ce84-e218-4dba-bf7f-a133c034c377)

4\. Station Extension should prompt you to sign a transaction that contains the repay operation. Confirm the details presented and enter your password to sign.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FzB5brNAfN1MqpZ0zWw9R%2FScreenshot%202022-02-07%20at%209.20.35%20PM.png?alt=media\&token=5d6bddfd-bda6-4d06-b901-6a13fe53764e)

5\. Repay complete.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FI3d1kHzPh9q3QdGbT7uG%2FScreenshot%202022-02-07%20at%209.25.08%20PM.png?alt=media\&token=0bda7f56-a31e-4be1-a64d-bb5f4d20d955)

## Withdrawing bAsset collateral

{% hint style="info" %}
Withdrawn bAsset collaterals can be redeemed for their underlying assets at the Anchor WebApp's [**BOND**](https://docs.anchorprotocol.com/anchor-2/user-guide/webapp/bond) page.
{% endhint %}

1\. Navigate to the **BORROW** page.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FU76gvWOHoRMYG2sPJvt6%2FScreenshot%202022-02-07%20at%209.26.01%20PM.png?alt=media\&token=25873205-fff8-4667-b419-c5f6cd733ac1)

2\. Decide a bAsset collateral to withdraw and click **\[Withdraw]**.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2F7HXJoPxsvMBkFEf50MVn%2FScreenshot%202022-02-07%20at%209.32.48%20PM.png?alt=media\&token=b437ad6d-4d6b-4225-b652-58fdc7a2917b)

3\. Enter the amount of collateral to withdraw. The withdraw amount can also be specified by selecting the loan's borrow usage ratio via the slider bar. Click the **\[Proceed]** button to confirm.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FeSqOknkkjNH6MjiCpF97%2FScreenshot%202022-02-07%20at%209.34.09%20PM.png?alt=media\&token=8b13f9f2-3d65-47e8-b8e3-f23f1495a601)

4\. Station Extension should prompt you to sign a transaction that contains the collateral withdraw operation. Confirm the details presented and enter your password to sign.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FvbKIyPV7utkOkm0Tuol9%2FScreenshot%202022-02-07%20at%209.36.33%20PM.png?alt=media\&token=edc2d241-bdb6-404d-8911-87fcd084674e)

5\. Collateral withdraw complete.

![](https://3491084666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-6Wb5pEQsulIrcwGJ%2Fuploads%2FxVzfnFUVT5WnEWCexhjs%2FScreenshot%202022-02-07%20at%209.38.26%20PM.png?alt=media\&token=2bad8075-5e5d-4c9e-80d5-4c8bc530a29d)


---

# 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.anchorprotocol.com/anchor-2/user-guide/webapp/borrow.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.
