# Yield Farming

PonytaSwap's Yield Farming is an effective way to earn rewards. To receive LP tokens, you will have to stake two tokens, which can then be staked in the Farm for further rewards. This allows you to earn rewards while still holding a position in your other tokens.

## Reward Calculations <a href="#reward-calculations" id="reward-calculations"></a>

Staking LP tokens in the farming pool allows you to earn RPG and LP rewards. Yield Farm APR calculations take into account both:

* **LP rewards APR** earned by providing liquidity
* **Farm base rewards APR** earned by staking LP tokens in the Farm

Please note that Yield Farming offers better rewards but comes with the risk of **impermanent loss**.&#x20;

## How to Use Farm

<details>

<summary>Getting Prepared</summary>

Setting up Yield Farming in PonytaSwap is easy!&#x20;

First, you’re going to need some LP tokens to enter into a Farm. Farms can only accept their own exact LP tokens. For example, the RPG-HEROES Farm will only accept RPG-HEROES LP tokens. You will need to provide liquidity for that trading pair to get the exact LP tokens. Therefore, to get RPG-HEROES LP tokens, you will have to provide liquidity for the RPG-HEROES pair.&#x20;

Trust us, it's not as difficult as it appears! To begin, follow the steps outlined below.

#### Finding your Farm <a href="#finding-your-farm" id="finding-your-farm"></a>

The first step is to choose a Farm that's right for you.&#x20;

1. Go to the **Farms** page and you’ll see a list of available Farms.​​&#x20;
2. You can search for a particular Farm by using the **Search** option.&#x20;
3. Note down the trading pair of the Farm you want to use, such as RPG-HEROES, in case you need it later.

![](https://1871265802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFE2YIboXbeBUeQFDqmkS%2Fuploads%2F8hmHkCQ4eTydipO8aSUE%2Fimage.png?alt=media\&token=520cd180-0e9d-413b-9ce8-e2b60a082e98)

#### Providing liquidity to get LP tokens <a href="#providing-liquidity-to-get-lp-tokens" id="providing-liquidity-to-get-lp-tokens"></a>

Once you've found a Farm to stake in, you'll need to add liquidity to receive your LP tokens.

1. Select the row of the Farm you've chosen. It will open to show more details.&#x20;

![](https://1871265802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFE2YIboXbeBUeQFDqmkS%2Fuploads%2F6psV8ly2SkxAjFUkT6zK%2Fimage.png?alt=media\&token=cd0563ad-c7fa-4b61-ab3c-3c82fb04b1de)

2. You'll find some links on the left. Click the **Get (your pair) LP** link to obtain your LP tokens.&#x20;

![](https://1871265802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFE2YIboXbeBUeQFDqmkS%2Fuploads%2FOdPz20eopCSGUiqFmbPG%2Fimage.png?alt=media\&token=9ab7ab8c-4160-4ca7-8757-908fcf59474d)

</details>

<details>

<summary>Start Staking in Farms</summary>

Once you've obtained your LP tokens, you can stake them in a Farm and start to earn rewards!

#### Putting your LP tokens into the Farm <a href="#putting-your-lp-tokens-into-the-farm" id="putting-your-lp-tokens-into-the-farm"></a>

1. Go back to the **Farms** page and locate your Farm. Click on the row showing your pair. It will expand to show more details.​ ​When you’re ready, click the **Enable** button and confirm your action in your wallet.
2. After a short wait, the **Enable** button will change to **Stake LP**. Click and a new window will appear.​ ​
3. Enter the amount of LP tokens you would like to farm, or simply click **Max** to use all of your LP tokens.​ ​
4. **Confirm** button will becomes active when you have entered the amount. Click and confirm your action in your wallet.
5. You will see your new staked LP token balance in the details after a short wait.&#x20;

***Please Note***: Cross-chain transactions take longer to confirm when farming on a blockchain other than Rangers Mainnet.

</details>

<details>

<summary>Adding/Removing LP tokens from Farms</summary>

You can add more LP tokens to a Farm or take some out whenever you want.&#x20;

1. Return to the **Farms** page.&#x20;
2. Find the Farm you have LP tokens in, and click the row to view details and to remove or add LP tokens.&#x20;
3. A window will pop up, in which you can enter the amount you would like to unstake/stake. You can also click **Max** to remove/add all available LP tokens.
4. Check to make sure all your information is correct. Then click the **Confirm** button to confirm the action in your wallet.
5. Your new balance will be updated shortly.&#x20;

***Please Note***: If you have unstaked your LP tokens, any unharvested rewards will be collected automatically.

</details>

<details>

<summary>Collecting Your Farming Rewards</summary>

Farming will earn you RPG rewards over time. You can collect these rewards and use them to get more LP tokens.

#### Returning to your Farm to Harvest <a href="#returning-to-your-farm-to-harvest" id="returning-to-your-farm-to-harvest"></a>

You can easily harvest farm rewards! Here's how:

1. Return to the **Farms** page.
2. View details of the Farm in which you staked your LP tokens. Under **RPG earned**, you should see an estimation of your rewards.
3. Click **Harvest** and confirm the action in your wallet.&#x20;
4. Your wallet will be credited with the RPG after a short wait.

#### How often should I harvest my rewards? <a href="#how-often-should-i-harvest-my-rewards" id="how-often-should-i-harvest-my-rewards"></a>

The rewards can be harvested as often as you like, but keep in mind that there is a small fee involved.

You can view this fee in your wallet when confirming after clicking **Harvest**. Note that there will be slight variations in how the information is displayed between different wallets.&#x20;

We recommend leaving your rewards to grow for a while so you won't have to pay fees as often!&#x20;

</details>

{% hint style="info" %}
If you run into any problems during the process, please don't hesitate to [contact us](https://ponytaswap.gitbook.io/ponytaswap/contact-us).&#x20;
{% endhint %}
