# Farming esGS via Liquidity Mining

### View Available Farms

To view all available farms, navigate to the "Earn" dropdown and click "Farms".\
\
You can see the reward tokens for each pool, total GammaSwap LP tokens staked (earning rewards) and the total supply of GammaSwap LP tokens in the pool.&#x20;

<figure><img src="/files/iEd6dFeK8eaX9gzc5WC4" alt=""><figcaption></figcaption></figure>

Additionally you can see the APY including supply fees and rewards broken down if you hover over the APY value.

<figure><img src="/files/zrHgryHiQ8LdFtObvYPm" alt=""><figcaption></figcaption></figure>

### Current Liquidity Providers

If you are a current liquidity provider, you must stake your GammaSwap LP tokens to start earning rewards in addition to supply fees.

To stake your LP tokens, navigate to the appropriate farm page for the pool and click "Stake" on the staking section of the farm page.

<figure><img src="/files/lDAxCkref9tSCylPAPd6" alt=""><figcaption></figcaption></figure>

Now simply choose the amount of GSLP you would like to stake.

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

### New Liquidity Providers

If you are a new liquidity provider to a pool with esGS incentives, the protocol will autostake your LP position once you provide liquidity. You can confirm by checking your position after you provide liquidity. *NOTE: AUTOSTAKING MAY NOT WORK FOR ZAPPING. YOU WILL POTENTIALLY BE REQUIRED TO STAKE MANUALLY AFTER.*

If the position appears as a "Staked Position", it means the LP tokens were autostaked in the corresponding farm contract. You can see active LP positions and which farm they were deposited into.\
\
**Note: if you are deposited in a legacy farm, you must unstake from that farm and stake in the new one to continue receiving rewards!**

<figure><img src="/files/bwvYPoMBTSEVLHEp7xsb" alt=""><figcaption></figcaption></figure>

You can also confirm the stake amount on the "Farm" page.

<figure><img src="/files/N5RbGiWuM7vrI01gqhgW" alt=""><figcaption></figcaption></figure>

### Unstaking Positions

To withdraw liquidity, you must first unstake on the farm page and then withdraw your liquidity from the pool. If you are receiving a message like this, it means you still need to unstake before withdrawing liquidity.

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

Simply navigate to the corresponding farm pool and click on "Unstake" on the "Farm" page

<figure><img src="/files/1fAI0QDocuinpvrzqqK8" alt=""><figcaption></figcaption></figure>

then click 100% to unstake your whole LP position.

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

After unstaking, you can withdraw your liquidity on the pool page by adding the amount of GSLP you would like to withdraw and then withdraw.

<figure><img src="/files/1OF3AGHAMjXNToiX2TGr" alt=""><figcaption></figcaption></figure>


---

# 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.gammaswap.com/guides/farms/farming-esgs-via-liquidity-mining.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.
