# Yield Farming

Yield Farms allow users to earn DEX while supporting Wedex by staking LP Tokens.

Check out our [How to Use Farms guide](/wedexintro/products/yield-farming/how-to-use-farms.md) to get started with farming.

Learn [how to find Farm smart contracts](/wedexintro/products/yield-farming.md)​

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

Yield Farm APR calculation includes both the rewards earned through providing liquidity and rewards earned staking LP Tokens in the Farm.

Previously, rewards earned by LP Token-holders generated from trading fees were not included in Farm APR calculations. APR calculations now include these rewards, and better reflect the expected APR for Farm pairs.

Below is a basic explanation of how APR is calculated.

![](https://lh4.googleusercontent.com/rJswz2qvCNTcODcClHxqlLpanSLsfbGtVw75MMPicBN1iKTKCuEYlPuoFAqskoy24DB9JBmATWb8dk3WmY1_BFDZoS94sWTBZhZrcnG711rC8ltDXPR3gdl8D50eWq_cfiBriKcl)

In the image above of the DEX/BUSD pair, we see these values:

**Liquidity:** $387.42M **Volume 24H:** $96.97M **Volume 7D:** 709.73M

To calculate the APR, first we take the 24hour volume, $96,970,000, and calculate the fee-share of LP-holders, 0.17% \[**$96,970,000\*0.17/100 = $164,849]**.

Next, we estimate the yearly fees based on the 24h volume \[**$164,849\*365 = $60,169,885**].

Now we can calculate the fee APR with yearly fees divided by liquidity \[(**$60,169,885/$387,420,000)\*100 = 15.53%**]

With the fee APR, we can add the fee APR (15.53%) and the Farm staking APR (20.08%) to get the new total APR \[**15.53%+20.08% = 35.61%**].


---

# 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.wedex.app/wedexintro/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.
