> For the complete documentation index, see [llms.txt](https://docs.pizzafarm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pizzafarm.io/pizzafarm.md).

# PizzaFarm

<figure><img src="/files/yd6s0872hIWLm6HInulZ" alt=""><figcaption></figcaption></figure>

Within the Fractal Network, the BRC-20 swap module is already active. Liquidity providers can earn additional token rewards through PizzaFarm, a process commonly known as LP mining. We are currently developing a non-custodial BRC-20 module within the Fractal Network to further support this.

## Pizza Farm&#x20;

PizzaFarm will serve as the frontend interface for this module, allowing liquidity providers on PizzaSwap to earn additional rewards through the platform.

## How does PizzaFarm work?

In version 1 (V1), we have completed the development of the staking chain index, primarily used to calculate LP shares and distribute reward tokens to liquidity providers.

## Staking Mechanism

### Linear Vesting

Token linear vesting usually means releasing a certain amount of tokens at a constant rate over a period of time. This linear vesting mechanism ensures transparency and fairness in token distribution, commonly used for token lock-up schedules, team rewards, or liquidity mining rewards.

#### `Basic Formula for Linear Vesting`

<figure><img src="/files/CrMcTWjHiNWWR8TctDKl" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/BnE54nO5K9vnNKXhProG" alt=""><figcaption></figcaption></figure>

#### `Reward Formula`

$$
R\_u(t) = (\frac{L\_u}{L\_{total}})\times(\frac{T\_{total}}{T\_{end} - T\_{start}})\times(t-T\_{start})
$$

## Staking Index

The index code references Uniswap's staking standards, which are the foundational framework for calculating LP shares and distributing rewards. You can learn more and explore the details here:

{% embed url="<https://github.com/Uniswap/liquidity-staker/blob/3edce550aeeb7b0c17a10701ff4484d6967e345f/contracts/StakingRewards.sol>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pizzafarm.io/pizzafarm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
