# Creating an Ecosystem farm

{% hint style="info" %}
**Read this entire guide before creating a farm.**
{% endhint %}

***

## Before you start

**Key requirements**

| Requirement | Details                                                                                                                    |
| ----------- | -------------------------------------------------------------------------------------------------------------------------- |
| Pool ID     | Every farm must link to a liquidity pool. Same Pool ID can have multiple farms.                                            |
| Liquidity   | Add sufficient initial liquidity before creating a farm. Low liquidity = high price volatility = impermanent loss for LPs. |
| Rewards     | Cannot be withdrawn once allocated. Plan carefully.                                                                        |

### **Calculating rewards and APR**

APR depends on rewards, token price, and pool liquidity. Consider:

1. **Target TVL** — How much liquidity do you want? Compare with similar pools.
2. **Reward token price** — Price fluctuations directly affect APR. Estimate a range for the farming period.
3. **APR formula:**

$$
APR = \frac{Daily Rewards Value}{Pool Liquidity} \times 365
$$

**Example:** $500/day rewards ÷ $100,000 liquidity × 365 = 183% APR

Changes to liquidity or reward token price will affect APR throughout the farming period.

***

## Creating a farm

**1. Connect wallet and select pool**

1. Navigate to Liquidity page → Click "Create" → Select "Creating a Farm"
2. Search for your target pool or paste the Pool ID directly

<figure><img src="https://4071094211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-qzD26DX_h6l_vXaA-887967055%2Fuploads%2FC8gMtDEztO44LVR5XmiM%2FScreen%20Recording%202024-05-15%20at%2018.40.13.gif?alt=media&#x26;token=9b265285-6bdd-410a-97e8-96c2f66bd1d8" alt="" width="375"><figcaption></figcaption></figure>

3. Verify the Pool ID and pool TVL before proceeding

If no pool exists for your pair, create one first.

**2. Set rewards and duration**

| Parameter     | Requirements                     |
| ------------- | -------------------------------- |
| Reward tokens | 1–5 tokens per farm              |
| Duration      | 7–90 days                        |
| Start time    | Cannot be changed after creation |

**Important:**

* Rewards are final once allocated—they cannot be withdrawn
* Rewards only emit when LP tokens are staked. Consider staking a small amount yourself so APR displays correctly at launch.
* New farms appear on the UI \~5 minutes after creation with an "Upcoming" tag

<figure><img src="https://4071094211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-qzD26DX_h6l_vXaA-887967055%2Fuploads%2FKXl6oWswyayQlzB6f6RW%2FScreenshot%202024-05-15%20at%2019.32.24.png?alt=media&#x26;token=cd15a006-bd95-4322-98c7-d0e2ab4763b8" alt=""><figcaption></figcaption></figure>

**3. Review and confirm**

1. Click "Review Farm"
2. Verify rewards, duration, and start time
3. Click "Create Farm"

Your farm will be live in \~5 minutes. View it under "Show Created" on the Ecosystem Farms tab.

<figure><img src="https://4071094211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MT-qzD26DX_h6l_vXaA-887967055%2Fuploads%2FzW1xdzlASSW6W7Rb47eF%2FScreenshot%202024-05-15%20at%2019.45.05.png?alt=media&#x26;token=aa7f856f-6fbd-448d-a6ed-fb53f0ed945b" alt="" width="375"><figcaption></figcaption></figure>

***

## Extending or adjusting rewards

Manage existing farms from Portfolio → "My created farms" → "Edit Farm"

| Action                   | When                        | Details                                                  |
| ------------------------ | --------------------------- | -------------------------------------------------------- |
| **Extend rewards**       | 72 hours before period ends | Adds rewards at the same emission rate, extends duration |
| **Change emission rate** | After current period ends   | Start a new period with adjusted rewards                 |
| **Add reward token**     | Any time                    | Up to 5 tokens total, each can have different periods    |

Rewards cannot be withdrawn once allocated.

***

## Summary

* Rewards are **final** and cannot be withdrawn
* Start time **cannot be changed** after creation
* Stake some LP tokens yourself to ensure APR displays at launch
* Extend rewards starting 72 hours before the period ends

Questions? Join [Discord](https://discord.gg/raydium) for support.
