> For the complete documentation index, see [llms.txt](https://docs.mainfarm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mainfarm.io/products/farms/how-to-use-farms.md).

# How to Use Farms

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2F7HB4ymrHIiVGy2ALcFtU%2FHOW%20TO%20USE%20FARMS.png?alt=media&amp;token=004eae0b-cdd2-4da1-9d1f-8fa9b1bf16ea" alt=""><figcaption></figcaption></figure>

### Farms are a great way to earn MAF rewards

To participate in farms, the user will need to provide liquidity a certain pair of tokens. \
After providing liquidity, the user receives LP tokens. \
\
LP tokens can be placed on the farm to earn a reward.

The farm allows users to earn MAF while maintaining a earning position in liquidity pools.

### Preparation

* To participate in the farm, you will need "LP tokens". Farms can only accept their own exact LP tokens.
* For example, the MAF-BNB farm will only accept MAF-BNB LP tokens.
* To get an LP token, you need to provide liquidity for this trading pair.
* Thus, in order to receive MAF-BNB LP tokens, you will first need to ensure the liquidity of the MAF-BNB pair.

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2FV1GuPe8YkiZLiZSsPe6u%2F312f-917d-a19c-e6f2.png?alt=media&amp;token=2f5db47a-d254-4682-be2d-fac7ede0a26b" alt=""><figcaption></figcaption></figure>

### Choosing a farm

* Before getting started, the user needs to select a suitable farm.&#x20;
* On the "[**Farms**](https://mainfarm.io/farms)" page there is a list of available farms.
* Using the filter, you can select the sorting option by "**APR**", for farms with the highest remuneration rate, or by "**HOT**" to select the most popular farms.

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2F9zjLhN7krWvaQJOCSSPv%2F7ee1-845f-2acd-7226.png?alt=media&amp;token=5ee4428f-993a-4769-a7a7-65d1e1ccb603" alt=""><figcaption></figcaption></figure>

### Placement of LP tokens in the farm

* After the farm is selected, connect your wallet.&#x20;
* Click on the "**Approve Contract**" button and confirm this action in your wallet.

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2FiZtIt0d0j0fuHEQwnRZh%2F94e0-b273-845c-44dd.png?alt=media&amp;token=9d4c7c94-80cf-4e58-9f99-974d348f42b6" alt=""><figcaption></figcaption></figure>

* After a short wait, the "**Stake LP**" button appears on this form.
* Click this button.

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2FwbDhKWrLyUV0nhtzZwIv%2F3211-34bf-111f-f5a8.png?alt=media&amp;token=e1954e6b-c714-4a1c-a61c-1c0edc8b43ab" alt=""><figcaption></figcaption></figure>

* After clicking on the "Stake LP" button, a form for entering LP tokens will appear.&#x20;
* We enter the required number of LP tokens.
* Click the "**Confirm**" button and confirm this action in the wallet.

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2F40PkWLTuvqyruW01ysuc%2F9dd5-3354-ac46-7154.png?alt=media&amp;token=e7a24309-8ef1-4f31-8218-0d96a8d68f56" alt=""><figcaption></figcaption></figure>

* Your farm is open :thumbsup:

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2FhY9VQs7an4ziLI3vFVuf%2Fcfa8-4fe9-ecf2-9bed.png?alt=media&amp;token=8a207f00-9c0a-4636-a02d-85d844d19520" alt=""><figcaption></figcaption></figure>

### Adding or removing LP tokens from the farm

{% hint style="warning" %}
*<mark style="color:orange;">**You can add or remove LP tokens from the farm at any time.**</mark>*
{% endhint %}

{% hint style="warning" %}

### *<mark style="color:orange;">Attention!</mark>*

*<mark style="color:orange;">**When adding new LP tokens to the farm, the current farm harvest is automatically withdrawn to your wallet.**</mark>*
{% endhint %}

* Open your working farm.
* Buttons "**+**" and "**-**" are located on the farm form.<br>
* Button "**-**" - delete LP tokens
* Button "**+**" - add LP tokens

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2F1KVt72uZjecgO8ZZseiK%2FInkedcfa8-4fe9-ecf2-9bed.jpg?alt=media&amp;token=932a665c-e427-42e3-a1c0-e14fdfe22937" alt=""><figcaption></figcaption></figure>

* When you click on the "**+**" or "**-**" button, a form will open for depositing or withdrawing LP tokens.<br>
* Enter in this form the number of tokens for replenishment or withdrawal.
* Click the "**Confirm**" button and confirm this action in your wallet.

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2F4N15Mh5Q0UBn4xk5tNeB%2Fd418-0cc7-20d4-c393.png?alt=media&amp;token=aef56974-34b2-48e8-834b-c667958f12fd" alt=""><figcaption></figcaption></figure>

### Outputting rewards

* To collect rewards, open your working farm.
* Click the "**Harvest**" button and confirm this action in your wallet.
* After a short wait, the MAF token will be transferred to your wallet.

<figure><img src="https://862915142-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVWJGLcAU7aUXwnK9YDX8%2Fuploads%2FZPbPYzfPvKRAPybYytGU%2FInkedcfa8-4fe9-ecf2-9bed.jpg?alt=media&amp;token=9dc2e39f-5ee0-47a0-9a92-5adbc87da2ad" alt=""><figcaption></figcaption></figure>

### How often can I withdraw rewards from the farm?

* You can withdraw rewards from the farm at any time.

{% content-ref url="/pages/JucJOBt2yetVcoBFk5lP" %}
[Liquidity Pool](/products/liquidity-pool.md)
{% endcontent-ref %}

\
\ <br>
