# Testnet Lend Instructions

## 1. CONNECT WALLET

1. Open the [**Haust Lend**](https://lend.testnet.haust.app/) site and click the **Connect** button to link the wallet you previously used during the [**Testnet Erigon**](https://docs.haust.network/testnet/testnet-instructions) phase and [Testnet DEX](https://docs.haust.network/testnet/testnet-dex-instructions) phase.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FCrhUJt2eYUEDeFa41jHF%2Fimage.png?alt=media&#x26;token=d42cf976-8cc7-4433-9aa9-441675d913a9" alt=""><figcaption></figcaption></figure>

2. The disconnect, copy address and view on explorer options will be available by clicking on the connected wallet in the top right corner.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FB7JKK8kerep9AY1dqAbp%2Fimage.png?alt=media&#x26;token=fd4118c3-8629-4912-855f-a0903844f54d" alt=""><figcaption></figcaption></figure>

3. Your Supplies and Borrows will not be displayed if there were no transactions in the Lending protocol with the current wallet.&#x20;

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FJuAnIMnbIq2edrskfHHW%2Fimage.png?alt=media&#x26;token=2305dfc6-fbd6-4e15-9977-4745a7aac6a8" alt=""><figcaption></figcaption></figure>

## 2. SUPPLY TOKENS

1. Click the **Supply** button of WBTC.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FuKeJ7DY7BCNxyOqflPrN%2Fimage.png?alt=media&#x26;token=3f9a2446-9515-4708-acb0-1faf4d7d4dde" alt=""><figcaption></figcaption></figure>

2. Supply any amount preferably more than 60% of your token balance.&#x20;

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2Fa73asHoSGP7wdhPhqVxr%2Fimage.png?alt=media&#x26;token=bd50fbdb-fdca-4637-a5a9-ef2c7e6d85f7" alt=""><figcaption></figcaption></figure>

3. Click **Approve** and confirm the transaction in Metamask.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FPydK0Gv7anJ6LEpDEeKy%2Fimage.png?alt=media&#x26;token=5d34ab29-ab72-4706-9030-9a67d8098a84" alt=""><figcaption></figcaption></figure>

3. Next, click the **Supply** button and confirm the transaction in Metamask..

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FM2mhBru6ciwmvGXj1GQU%2Fimage.png?alt=media&#x26;token=8f91f2c8-81a4-437c-9cdd-96dd2d47dc8e" alt=""><figcaption></figcaption></figure>

4. The token will be supplied, by default collateral toggle will be enabled.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2F5a7ot8QmBhRuyIqzRkg5%2Fimage.png?alt=media&#x26;token=e4963260-4cea-4c48-a428-aaaee213bc5a" alt=""><figcaption></figcaption></figure>

5. Now supply any amount of WETH by following similar steps [1 - 4](https://docs.haust.network/testnet/master).
6. After that you will have 2 assets in your Supplies.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FjyR7R91gQqbXWkQ0xZyC%2Fimage.png?alt=media&#x26;token=b48c0c2b-7a28-4d43-9f5f-3b35a658d2a0" alt=""><figcaption></figcaption></figure>

## 3. BORROW TOKENS

1. To borrow tokens click **Borrow** button. Let's borrow USDT.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FBDB1GIzoVLMfklBvKo52%2Fimage.png?alt=media&#x26;token=91a9f09f-83c0-48d4-927a-ea349fd7f455" alt=""><figcaption></figcaption></figure>

2. Choose any amount below maximal. Click **Enter amount** and confirm transaction in Metamask.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FQNRPmCxgrstKDTl7TlX4%2Fimage.png?alt=media&#x26;token=9c9c3d1b-c4a5-4b1d-857d-f150d464e00b" alt=""><figcaption></figcaption></figure>

3. Now on a main screen added a new parameter - **Health Factor** is a crucial metric that measures the safety of a Borrow position.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FuBglE5QA1qU1LPZGb7Gi%2Fimage.png?alt=media&#x26;token=0ba96d04-1c01-4d80-96f4-3a36f3ac9df8" alt=""><figcaption></figcaption></figure>

4. To understand its mechanism lets Borrow more tokens (or Withdraw some Supply) to make the Health Factor lower and as much close to 1.5 as possible.
5. I had to Withdraw all WBTC and Borrow more USDC to achieve Health Factor at 1.50.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FmHe3L7nMBL3jMaBBXAp7%2Fimage.png?alt=media&#x26;token=5632a729-b015-4e84-9bdc-86b4878de554" alt=""><figcaption></figcaption></figure>

6. A **Health Factor of 1.5** means that your collateral is 1.5 times greater than the required minimum collateralization level. Health Factor 1.5 and lower is close to critical, when user needs to interact with Protocol to adjust it.
7. A health factor below 1 risks liquidation. To increase it Repay some of your loan (Borrow positions) or deposit more collateral (add more Supply).

## 4. TRANSACTIONS HISTORY

1. Click the **View Transactions** button located in the top right corner of the site to check the history.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FAsLv2onNuOqEjCsS3eQX%2Fimage.png?alt=media&#x26;token=05d9810b-b23a-491c-b485-054ac6d8f664" alt=""><figcaption></figcaption></figure>

2. Will be displayed all history of your interaction with Protocol.

<figure><img src="https://3672846622-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn5zh4fpSEkvKAmaszfnj%2Fuploads%2FkLAsMgV65pTvtLzRbEfS%2Fimage.png?alt=media&#x26;token=8c3e2240-aea5-4c17-9eb9-87f8df0f75c7" alt=""><figcaption></figcaption></figure>

## 5. COMPLETE HAUST LEND TESTNET BUG REPORT

1\. Please complete the [Google form](https://docs.google.com/forms/d/e/1FAIpQLSeiNMouPzj5qS0F53xRn02l5M_Xf8npi3w21wmpTg9iyCeN-A/viewform) and list all the issues you encountered.


---

# 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.haust.network/testnet/testnet-lend-instructions.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.
