> For the complete documentation index, see [llms.txt](https://docs.grabity.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.grabity.org/products/refinery/how-to-stake-unstake-lp-tokens.md).

# How to Stake/Unstake LP Tokens

Follow our guide below to stake/unstake LP tokens in Refinery to earn rewards to redeem your LP tokens!

{% tabs %}
{% tab title="Staking LP Tokens" %}
1\. [Connect Your Wallet](broken://pages/qyQpo7a4Pl5Q8llB4g8i)

2\. Access the yield farming page by clicking on the \[Refinery] menu on the navigation bar.

3\. Locate the Refinery contract that supports the deposit of your LP tokens.

4\. Enable the contract by clicking on \[Enable]. You will be prompted to authorize a transaction through the wallet you've connected with.

5\. Click on the \[+] button to interact with the \[Stake LP Tokens] pop-up.

6\. Select the amount of LP tokens to stake by either manually entering the quantity or clicking on the percentage buttons below.

7\. Click \[Confirm] and sign the transaction to complete the staking process.

8\. Your rewards will be displayed on the \[GBT Earned] section.
{% endtab %}

{% tab title="Unstaking LP Tokens" %}
1\. [Connect your wallet.](broken://pages/qyQpo7a4Pl5Q8llB4g8i)

2\. Access the yield farming page by clicking on the \[Refinery] menu on the navigation bar.

3\. Locate the Refinery contract that holds your LP tokens.

4\. Click on the \[-] button to interact with the \[Unstake LP Tokens] pop-up.

5\. Select the amount of LP tokens to unstake by either manually entering the quantity or clicking on the percentage buttons below.

6\. Click \[Confirm] and sign the transaction to complete the staking process.

7\. Your LP tokens and any unharvested rewards in the contract will be redeemed to your wallet.
{% endtab %}
{% endtabs %}


---

# 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://docs.grabity.org/products/refinery/how-to-stake-unstake-lp-tokens.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.
