# Yield Farming

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

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

## **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;

![](/files/cXir7xG24TeltIQ5sfxx)

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!

![](/files/xTOiWmJxz5TYB1q4jigc)

## **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;


---

# Agent Instructions: 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:

```
GET https://docs.swappi.io/swappi/products/yield-farming.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
