> For the complete documentation index, see [llms.txt](https://docs.metalx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metalx.com/swap-pools-and-farms/what-is-metal-x-swap/farming.md).

# Farming

Yield farming involves you becoming a [liquidity provider](/swap-pools-and-farms/what-is-metal-x-swap/liquidity-pools.md) and locking your cryptocurrency into a smart contract tied to a liquidity pool in the form of liquidity provider tokens, earning you interest in the process.

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

On the farms page you can view the following:&#x20;

* All available farms
* APR for all farms
* Total staked per farm
* Total amount you staked per farm
* Total amount you earned per farm&#x20;

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

If you click on a specific farm, you will see the breakdown of how much liquidity you provided.

You can also harvest rewards here at any time, every 0.5 seconds.

### Staking period

You can withdraw from the farms and liquidity pools at any time, there is no lockup period.

### Farming APR

The APR rate is variable, the rate can change if the total staked amount changes. If more is staked, then the rate will drop, if less is staked then the rate will go up.&#x20;

The rate can also change if the USD value of the reward token changes. if the price of the reward token increases, the rate will go up, if it goes down, the rate will go down.

### Farming guides

Check out our [farming guide here](https://help.xprnetwork.org/hc/en-us/articles/6305251276567-How-to-add-LP-tokens-to-Farming).


---

# 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.metalx.com/swap-pools-and-farms/what-is-metal-x-swap/farming.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.
