# Farm

## Overview

Stake your LP tokens to earn rewards. The type of tokens distributed as rewards varies depending on which protocol is incentivizing the pools.

## Stake LP Tokens

<details>

<summary>STEP 1 Select a V2 farm</summary>

* Go to <https://stargate.finance/farm> and find the “Available” tab
* Apply the filter `V1` / `V2` to view the farms where your LP Tokens are located
* Select one of the available farms to stake your LP Tokens

</details>

<details>

<summary>STEP 2 Stake LP Tokens</summary>

* Enter the desired amount to stake to the farm; Select "Max" to deposit all available tokens.
* Click "Deposit" to continue

</details>

<figure><img src="https://26498766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz1thl94d8j8bqORu29q1%2Fuploads%2FxFPNeauIxpPPPRyYy1OD%2FStake%20LP%20Tokens.jpg?alt=media&#x26;token=0e7e1b5d-1465-4ed9-85d8-a8f6d813a3ab" alt=""><figcaption><p>Add Liquidity</p></figcaption></figure>

<details>

<summary>STEP 3 Sign transaction in your wallet</summary>

* Confirm your transaction in the notification window of your wallet.
* Once the signing process is complete, your LP Tokens will be successfully staked to your farm

</details>

## Withdraw from Farm

<details>

<summary>STEP 1  Select a farm to unstake your LP Tokens</summary>

* Go to <https://stargate.finance/farm> and select "My Farms"
* Choose the farm from which you wish to unstake LP Token.

</details>

<details>

<summary>STEP 2 Withdraw</summary>

* Enter the desired amount to withdraw the LP Tokens; Select "Max" to unstake all LP tokens from the farm
* Click "Withdraw" to continue

</details>

<figure><img src="https://26498766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz1thl94d8j8bqORu29q1%2Fuploads%2FilEJUzWYwo8hYmbTbhG2%2FUnstake%20from%20Farm.jpg?alt=media&#x26;token=89f7a9ef-c05d-4e45-813b-7e3c500a749c" alt=""><figcaption><p>Redeem Liquidity</p></figcaption></figure>

<details>

<summary>STEP 3 Sign transaction in your wallet</summary>

* Confirm your transaction in the notification window of your wallet.
* Once the signing process is complete, your LP Tokens will be successfully returned to your wallet.

</details>

{% hint style="info" %}
Staking in the farm allows you to earn rewards, which you can claim at any time. When you withdraw LP tokens from the farm, any unclaimed rewards will automatically be claimed.
{% endhint %}


---

# 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://stargateprotocol.gitbook.io/stargate/v2-user-docs/stargate-features/farm.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.
