> For the complete documentation index, see [llms.txt](https://ije.gitbook.io/mangofarm.fi-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ije.gitbook.io/mangofarm.fi-1/for-farmers/or-farming-rewards-logic.md).

# | Farming rewards logic

## Farming Algorithm Logic <a href="#farming-algorithm-logic" id="farming-algorithm-logic"></a>

Users deploy $SOL on our site to be collateralized as loans, these loans are then farmed across multiple chains. These farming returns are returned to users as $SOL distributions.

{% hint style="info" %}

#### TVL Ranking Formula <a href="#tvl-ranking-formula" id="tvl-ranking-formula"></a>

The TVL ranking formula outlines how your returns change with the amount of TVL locked in Mangofarm.
{% endhint %}

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

> **$MANGO Investment = $SOL deposit / ($SOL deposit + $SOL TVL) \* $MANGO market.**

We can observe that the $MANGO price is not fixed; it depends on several variables such as the deposit amount, contract balance, and the $MANGO market.

($MANGO market is just a placeholder for the time being, the main variable is the TVL. The earlier you enter the market, the higher your rewards.)

***

#### Learn on our daily interest's algorithm below

{% content-ref url="/pages/44O83mAtY9krCXU2qsOH" %}
[| Miscallaneous notes](/mangofarm.fi-1/for-farmers/or-miscallaneous-notes.md)
{% endcontent-ref %}
