# Farms

PancakeSwap Infinity farming is a simple, gas-efficient way for users to earn liquidity rewards without needing to stake their LP tokens. Once liquidity is added to an eligible pool, rewards begin accruing automatically.

#### ⚙️ How It Works

Here’s a quick breakdown of how the system tracks and distributes rewards:<br>

**✅ No Staking Required**

* Just hold your LP position in your wallet.
* No need to lock your assets or interact with additional smart contracts.
* You start earning rewards automatically when you add liquidity.

#### 📈 Rewards Distribution

* Only in-range positions (those providing active liquidity) receive rewards.
* Rewards are proportional to the fees earned by your position during each period, called an epoch.

#### ⏳ What’s an Epoch?

* An epoch is a fixed time window — currently set to 8 hours.
* Rewards are calculated and distributed after each epoch.
* Epochs are currently scheduled at 00:00, 08:00, and 16:00 UTC.

***

#### 🔄 Farming & Claim Process

1. **Tracking Positions:** The backend system monitors your LP positions across all farms.
2. **Reward Calculation:** At the end of every epoch,
   1. The system calculates your rewards based on your liquidity and the fees generated.
   2. It processes the rewards into a Merkle tree and submits a Merkle root to a smart contract.
3. **Dispute Period:**
   1. After the Merkle root is published, the 1-hour dispute period begins.
   2. During the dispute period:
      1. The newly calculated rewards cannot be claimed.
      2. Rewards from previous epochs remain available to claim.
      3. Automated and community-operated verification tools check the accuracy of the published data. If discrepancies are detected, a dispute may be raised to prevent incorrect distributions.
4. **Claiming Rewards:**
   1. Once the dispute period ends, you can claim your rewards for the latest epoch.
   2. All pending rewards across all farms can be claimed in a single, gas-efficient transaction.
5. **Unclaimed Rewards Roll Over:**
   1. Any unclaimed rewards roll over to subsequent epochs. Each update incorporates previous rewards, ensuring no earnings are lost or expired.

{% hint style="info" %}
Tighter liquidity ranges generally lead to higher earnings but increase the likelihood of a position moving out of range and becoming ineligible for rewards.
{% endhint %}

#### 🌱 Summary

✅ No staking\
✅ Gas-efficient claiming\
✅ Regular reward updates\
✅ Fair and transparent dispute process\
✅ Rewards accumulate until you’re ready to claim


---

# 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.pancakeswap.finance/trade/pancakeswap-infinity/farms.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.
