# Compound v2

<figure><img src="https://docs.enzyme.finance/~gitbook/image?url=https%3A%2F%2F2049782695-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FWzXrybpj5e9VBbPlbYCJ%252Fuploads%252Fk3hDXezsB9924TbHoNt0%252Fcompound.png%3Falt%3Dmedia%26token%3D64f5ad3e-3a7b-4060-a7cd-f6f80771f691&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=1a5393ea&#x26;sv=2" alt=""><figcaption></figcaption></figure>

[Compound](https://compound.finance/) is an algorithmic decentralized finance protocol built on the Ethereum blockchain that allows users to lend and borrow cryptocurrency assets. Enzyme enables its users to **lend and borrow** various assets **on** the **Ethereum** network using **Compound v2**.

#### How to Lend on Compound v2? <a href="#how-to-lend-on-compound-v2" id="how-to-lend-on-compound-v2"></a>

1. Go to your vault menu on the left-hand side panel and click on "Defi Protocols".
2. Select "Compound v2" from the protocols list.
3. On the Lend tab, search for the asset you wish to lend and click on "Lend".
4. Enter the amount you want to lend and click on "Lend".
5. Review the details of your transaction.
6. Confirm the transaction and sign it with your connected wallet.

#### How to Redeem on Compound v2? <a href="#how-to-redeem-on-compound-v2" id="how-to-redeem-on-compound-v2"></a>

1. Go to your vault menu on the left-hand side panel and click on "Defi Protocols".
2. Select "Compound v2" from the protocols list.
3. On the current tab "Lend", click on "Redeem" and enter the amount you want to redeem.
4. Review the details of your transaction.
5. Confirm the transaction and sign it with your connected wallet.

#### How to Borrow on Compound v2? <a href="#how-to-borrow-on-compound-v2" id="how-to-borrow-on-compound-v2"></a>

1. To borrow on Compound v2, go to the vault menu located on the left-hand side panel and click on "Defi Protocols".
2. From the list of protocols, choose "Compound v2".
3. In the "Borrow" tab, navigate to the "Current Borrowing Positions" section and click on the three dots. Then, select "Add Collateral".
4. Review the transaction details.
5. Confirm the transaction and sign it using your connected wallet.
6. Once you have collateral, you can select any asset from the list and click on "Borrow".
7. Enter the desired borrowing amount and click on "Borrow".
8. Review the transaction details.
9. Confirm the transaction and sign it using your connected wallet.

You must use [cTokens](https://compound.finance/docs/ctokens) as collateral to borrow on Compound. To convert regular tokens to cTokens, please lend them on [Lend](https://app.enzyme.finance/vault/0x86758fde8e8924be2b9fa440ff9d8c33a4e064a5/protocols/compound) tab.


---

# 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.enzyme.finance/user-documentation/blue-management/protocols/compound-v2.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.
