# How to use Stacks Market to Earn Yield

{% hint style="warning" %}
**Make sure you’re using Stacks Market V2** for higher borrow caps and increased capital efficiency.

Use the market selector in the top-left corner to switch between v1 and v2.

If your liquidity is still on V1, use the following guide to complete the migration: [Stacks Market Liquidity Migration: V1 to V2](/start/borrow/stacks-market-liquidity-migration-v1-to-v2.md)
{% endhint %}

## Depositing Assets

Visit [https://app.zestprotocol.com](https://app.zestprotocol.com/) and connect a Stacks wallet. We currently support [Leather](https://leather.io/), [Xverse](https://www.xverse.app/), [OKX Wallet](https://www.okx.com/web3),  [Fordefi](https://fordefi.com/), and [Asigna](https://asigna.io/).

**Before depositing liquidity, mare sure the market selector/switch is set on the V2.**&#x20;

Under **“Assets to supply,”** select the asset you want to earn yield on and click **“Supply.”**

A popup will appear where the user chooses the deposit amount and sees information on supply APY, projected annual yield, and collateral details.

The popup will also include an **“Advanced Options”** button that lets users activate the optional **no-rehypothecation** feature.

By disabling the **"Enable Yield"** box, a user’s deposits remain fully segregated as their own collateral and are never lent out (so the deposit does not earn yield).

<figure><img src="/files/D9dYy6qBC7rLm31PL95f" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
1\) Whichever mode you first use for Asset A (rehypothecated or not) applies to all later supplies of that asset. To change modes, you must withdraw the position and supply it again under the new choice.

2\) Switching between the two modes cannot be done on an existing position.

To move from rehypothecated to non-rehypothecated (or the reverse), you must withdraw the current position and then supply the asset again under the desired setting.”
{% endhint %}

After clicking **“Supply”** in the popup, the user must approve the transaction in the wallet window.

When the **“Transaction Broadcast”** screen appears, wait a few seconds for confirmation on the Stacks network.

{% embed url="<https://www.loom.com/share/3eef2f7d5c65427ea72bdc031744867e>" %}

Once confirmed, your supply position becomes active and begins earning continuously compounding yield. Your active lending position can be found under **‘Your Supplies’**.

That’s all there is to it.

<figure><img src="/files/5U55CfPziM87ibd5O8he" alt="" width="563"><figcaption></figcaption></figure>

## Withdrawing Assets

When you're ready to stop earning yield, click **‘Withdraw’** on the asset you wish to redeem under **‘Your Supplies’**. Once the transaction confirms, your assets will be returned.

The withdrawal popup will also show how the amount you withdraw affects your borrowing position, if you have one.

If you select **‘Max’**, you’ll receive your full balance, original deposit plus accrued yield.

{% hint style="info" %}
**Note:** If you have an active borrowing position, it must be fully repaid before you can withdraw the corresponding supplied assets
{% endhint %}

{% embed url="<https://www.loom.com/share/b9fe840a933c4614a652a7da64dbdf52>" %}


---

# 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.zestprotocol.com/start/borrow/how-to-use-stacks-market-to-earn-yield.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.
