# LP Farms

## LP Farms

LP Farms lets holders stake their tokens to the LP and earn SOL rewards. Any token can run a farm — tokens launched through Bootstrap, or any other creator-fee enabled token.

This page covers how farms work, how to stake, how to create a farm, and what dashboard fields mean.

***

### What a Farm Is

A farm is a staking pool for a single token's LP. Holders stake their tokens to the LP, and the resulting LP position earns a share of the farm's SOL rewards, distributed proportionally to how much LP they've staked and for how long.

Rewards are paid in SOL and can be funded one of two ways:

* **Auto fee-routing** — a configurable share of the token's creator fees flows to the farm every cycle, with the remaining creator income continuing to the creator as normal. Only the creator can set this up.
* **Manual SOL deposits** — anyone (creator, trader, or holder) can deposit SOL directly into the farm and set an emission schedule.

Either way, the farm program handles distribution to stakers.

***

### Staking

Two tabs on the farm page, two ways to stake depending on what's in your wallet:

#### "Add LP and Stake" tab

Use this if you only hold the token and don't have LP yet. You deposit SOL alongside your tokens to create the LP, and it gets staked in the farm in one step.

This requires enough SOL in your wallet to match the value of the tokens you're depositing. The farm does not sell your tokens to generate the SOL side of the pair. If you don't have enough wallet SOL to match, use the "Stake" tab path below.

> **Note:** The SOL drawn from your wallet is locked into the LP position alongside your tokens. You can unstake at any time to return both to your wallet.

#### "Stake" tab

Use this if you already hold LP tokens for the farm's token. Enter the LP amount and stake.

Two ways to get LP tokens:

* **Swap on the swap page** — swap your tokens for LP tokens directly. No wallet SOL required.
* **Provide liquidity on the LP Pools page** — standard LP deposit flow.

Either way, the LP lands in your wallet and can be staked from the "Stake" tab.

#### To stake:

1. Open the farms dashboard and pick a farm.
2. Connect your wallet.
3. Pick the tab that matches your situation: "Add LP and Stake" if you're pairing with wallet SOL, "Stake" if you already hold LP.
4. Enter the amount and confirm.
5. Rewards accrue continuously based on your share of total staked LP. Claim or unstake at any time.

Your yield is a function of three things: the amount of LP you have staked, how long you stake it, and the farm's APR at the time. APR moves with TVL (more LP staked → your share of rewards shrinks) and with the rate of incoming reward flow.

***

### Creating a Farm

Any token can open a farm — Bootstrap-launched or not.

There are two entry points, plus two funding models to choose from:

#### At Launch

When creating a new token through Bootstrap, the farm is configured on the launch page. Set the allocation percentage at the same time you set up the token, and the farm is live from the first trade. Rewards are auto fee-routed from the start.

#### For an Existing Token

Two paths, depending on how you want to fund rewards:

**Manually funded — via the farms dashboard.** Anyone can create a manually funded farm — creators, traders, or holders who want to incentivize LP on a token. Hit **Create Farm** on the farms dashboard, deposit SOL, and set the emission schedule. The farm pays out your deposited SOL on that schedule; there's no connection to creator fees. Top up whenever you want.

**Auto fee-routed — via Bootstrap setup.** Only the creator can do this. To route creator fees into the farm automatically, set up Bootstrap on the existing token page and set the creator share. Every cycle, the configured share flows to the farm and the rest continues to the creator as normal creator income. Allocation can be adjusted at any time.

***

### Using the Dashboard

The dashboard serves both stakers and creators. Each row represents one farm.

Core fields:

* **Token** — the farm's token
* **TVL** — total value of LP tokens staked in the farm
* **APR** — annualized yield estimate *(see formula below)*
* **Rewards Remaining** — rewards still available to distribute
* **My Stake** — your current LP deposit (when wallet is connected)
* **My Rewards** — claimable rewards (when wallet is connected)

Sort by APR for discovery; sort by TVL for depth and maturity.

#### Interpreting the Dashboard

* **High APR + low TVL** → small farm with a live reward stream. Yield will compress as more LP stakes in.
* **Moderate APR + high TVL** → established farm in steady state.
* **Low APR** → either the reward stream has thinned or the farm is heavily staked. Check Rewards Remaining to tell which.

***

### APR Calculation

APR is the annualized value of rewards flowing into the farm, measured against total staked LP tokens:

```
APR = (projected annual reward value in SOL / staked LP TVL) × 100
```

Because both sides of that equation move — reward flow with creator activity, TVL with LP staking — APR on any farm should be treated as a live estimate, not a fixed rate. On new or thinly-staked farms especially, expect meaningful swings.

***

### Data Sources

The farms page pulls live data from two sources:

* **Token pricing and LP data** — [Jupiter API](https://station.jup.ag/docs/)
* **Farm state (stakes, rewards, schedule)** — read on-chain via the farm program

For integrators building on top: the farm program is the source of truth for anything stake- or reward-related. Jupiter is the source for pricing.


---

# 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.bootstrapliq.fun/lp-farms.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.
