> For the complete documentation index, see [llms.txt](https://wiki.subdao.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.subdao.network/product-guide/apps-and-settings/aave-lending.md).

# AAVE Lending

SubDAO provides lending services by accessing AAVE. The Manager can borrow a certain amount of tokens by pledging the assets in the vault.&#x20;

Two Ways to Access:&#x20;

1st: Apps\&Settings - AAVE Lending

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

The following is an example of DeFi's  Lending process: "Supply USDC in the vault, borrow CRV, repay CRV, get USDC back."

{% hint style="warning" %}
All operations related to Tokens in DeFi (Supply, Borrow, Repay, Withdraw) require other Managers to authorize the Token before they can operate.&#x20;
{% endhint %}

For example, when pledging USDC in the vault to borrow CRV, you need to authorize it twice.

1. &#x20;First authorization: authorize your address to become a Super manager so that the address has the right to use a certain amount of USDC to supply USDC in AAVE.
2. Second authorization: Use the \[Add Token] function in Portfolio to add CRV to the vault so that the vault supports CRV assets. Then, authorize your address to become a Super manager again so that it can use a certain amount of CRV in AAVE, and then this address can perform Borrow CRV.

**Supply**&#x20;

Authorize the use of a certain amount of USDC for collateral;&#x20;

Click **\[Apply now]** to apply for the amount;

![](/files/KxSlGZZHh2QEK95xdTED)![](/files/f8LstzkqJ6V45jTssXfA)

After the authorization is approved, you can click \[Supply] to enter the amount, deposit the amount, and click MetaMask signature to confirm;

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

**Successful Supplied**

Check **My supplies**. Your supplies will be shown;

{% hint style="warning" %}
&#x20;*After the supply is successful, the treasury will obtain the equivalent amToken as the supplied certificate. When the supplied Token USDC is retrieved, the amUSDC needs to be authorized before the USDC can be retrieved.*
{% endhint %}

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

Check the Vault Token. At this time, the MATIC supplied is exchanged for amWMATI&#x43;*.*

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

**Borrow**&#x20;

Go to borrow CRV in Asset Borrow, and click the **\[Borrow]** butto&#x6E;*;*

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

Authorize the asset : Select the asset type and fill in the usage limit. After the application is voted through, the \[Borrow] of the asset can be performed;&#x20;

{% hint style="warning" %}
If the asset cannot be selected, the DAO vault has not yet supported the asset. You need to go to Portfolio and use "Add Token" to add the asset before you can select the assets in the Super Manager settings. When applying for the use of the asset, do not fill in 0 as the amount.
{% endhint %}

To borrow an asset, click **\[Borrow]** to enter the amount to borrow. (The authorization process will not be repeated here)

<figure><img src="/files/1cDnDVrPB9c6Z4Nyr78s" alt=""><figcaption></figcaption></figure>

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

#### Successful Borrow

Check Borrow: Switch to My borrows, showing the borrowing just toke place; borrow succeeded.

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

**Repay**&#x20;

(The authorization process will not be repeated) Click **\[Repay]** and enter the repayment amount to make the repayment.

<figure><img src="/files/5TkL66fEHRoJPW4BfGrr" alt=""><figcaption></figcaption></figure>

Successfully Repay

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

**Withdraw**

Authorization of amUSDC Token&#x20;

To retrieve the pledged USDC, you need to obtain authorization to use the amUSDC Token through Super Manager.&#x20;

Click Withdraw

<figure><img src="/files/4K9wqwX0oElwDWpi7ybk" alt=""><figcaption></figcaption></figure>

Enter the withdrawal amount, which cannot exceed the maximum balance.

![](/files/9AKSNjyniVfnOcSrrYDs)![](/files/A7MrCpojKBEb0jTMhvZy)

Successful Withdrawal

{% hint style="warning" %}
*To redeem the entire pledged Token, you need to pay off all the borrowed money first.*
{% endhint %}


---

# 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://wiki.subdao.network/product-guide/apps-and-settings/aave-lending.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.
