> For the complete documentation index, see [llms.txt](https://stargateprotocol.gitbook.io/stargate/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stargateprotocol.gitbook.io/stargate/v2-user-docs/stargate-features/farm.md).

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