# Yield Farming

Check out our [**How to Use Farms**](https://docs.swappi.io/swappi/products/yield-farming/how-often-should-i-harvest-my-rewards) guide to get started with farming.&#x20;

To find the farms' smart contract addresses, see [Contract Addresses](https://docs.swappi.io/swappi/about-swappi/swappi-contract-addresses).

## **Reward calculations**&#x20;

Yield Farm APR calculations include both:&#x20;

* LP rewards APR earned through providing liquidity&#x20;
* Farm base rewards APR earned staking LP Tokens in the Farm.&#x20;

![](https://3684049901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqX1V3utG037uXsh1ikKI%2Fuploads%2FcyvevpTgdWRi693z8yOy%2Fimage.png?alt=media\&token=e4de23a1-3702-464e-9d65-3bb1c3859dd6)

Why? Because when you stake your LP tokens in a farm to earn PPI, you're still providing liquidity to the liquidity pool, so you earn LP rewards as well!

![](https://3684049901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqX1V3utG037uXsh1ikKI%2Fuploads%2FWc2ZTRnT7UOTYa6lGzqO%2Fimage.png?alt=media\&token=0383a363-c5b3-48b3-937d-0533b26f1cd8)

## **Calculating Farm Base Reward APY**&#x20;

The Farm Base APY is calculated according to the farm multiplier and the total amount of liquidity in the farm -- this is the amount of PPI distributed to the farm.&#x20;

### Calculating LP Reward APR

A quick example of calculating **LP rewards**:

If in the CFX/USDT pair, we see these values:

**Liquidity:** $100M\
**Volume 24H:** $10M\
**Volume 7D:** 200M

* Calculate yearly fees
  * Use the 24H volume to calculate the **fee share** of liquidity providers in the pool (based on the 0.17% trading fee structure):\
    $10,000,000\*0.17/100 = **$17,000**
  * Next, use that **fee share** to estimate the projected **yearly fees** earned by the pool (based on the current 24h volume):\
    $17,000\*365 = **$6,205,000**
* We can now use the yearly fees to calculate the **LP rewards APR:** That's **yearly fees** divided by **liquidity:**\
  ($6,205,000/$100,000,000)\*100 = **6.205% LP reward APR**

&#x20;
