> 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="/files/WJ8D2GhE5diFH7hhdMWH" 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="/files/ZF3pkGuuryyNZNnZSZqA" 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="/files/t4WaFkUWdd0AP741qt2h" 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="/files/5ep5NwAVBLC7PAcsJjm0" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/UOojsbTqSZfIGDCgNO1m" 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="/files/eDG57OUzsG6az8aHivb7" alt=""><figcaption></figcaption></figure>

* Your farm is open :thumbsup:

<figure><img src="/files/mrjOWay0atyWvmfKPLNf" 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="/files/LCJO9VgCADaNPchsSYxp" 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="/files/aOYgnfpeCyUEjClH60Bn" 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="/files/ZiCGDlDiyYut06GkW5kM" 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>
