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

# Solar Farms

![](/files/0MxqnXnIz63XLCxNo61Y)

## Solar Farms

Liquidity Providers can earn $ASTRO  by locking their LP tokens into a smart contract. This added incentive means to address the risk of [impermanent loss](https://trustwallet.com/blog/what-is-impermanent-loss) that is part and parcel of providing liquidity in a DEX. (Please remember to always do your own research.)

## Calculating the Rewards

The AstroSwap Solar Farm APR calculations include the rewards earned through being a liquidity provider and the rewards earned through staking LP Tokens.

The rewards are generated per block and distributed to each user based on their deposited amount at the end of each block.

For example, in the ADA-ASTRO farming pool, 1 $ASTRO is generated as the reward per block.

After 100 blocks are generated on the Velas chain, 100 $ASTRO are distributed to users based both on the amount they deposited and how long they deposited for.

If Astronaut Kirk deposited 10 ADA-ASTRO LP and Astronaut Yuri deposited 15 ADA-ASTRO LP, of the 100 $ASTRO distributed as rewards, Astronaut Kirk would get 40 ASTRO and Astronaut Yuri would get 60 ASTRO.

As more users lock more LP tokens, the APR will drop according to the proportion in which these new tokens are added.


---

# 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.astroswap.app/products/yield-farming.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.
