Farming
Farming on Libre Chain
Last updated
Farming on Libre Chain
Last updated
Anyone can provide liquidity to the Libre AMM. As an incentive, they will be able to earn LIBRE rewards by staking their LP tokens. For example, the PUSDT / PBTC pool will accrue farming rewards equal to 1/4 of whatever validators earn per day.
To add liquidity, visit https://dashboard.libre.org/swap
Farming APYs will depend on the number of participants farming each pool and the share of staked LP tokens that each account has staked.
Farming rewards are emitted on every block that is produced. On Libre, a block is currently produced every 0.5 seconds which means there are 2 blocks per second, then we can calculate the rewards per day using this:
The reward per block is set in the reward.libre::global table. As of April 12, 2023 - this is set to 1 LIBRE / block. So the daily emission can be calculated below:
This total reward is divided by the number of "allowed_pools" set in the reward.libre::global table.
Currently, this is 2 pools - BTCUSD and BTCLIB, so we can calculate the total reward per pool as follows:
This amount is paid pro-rata daily to each pool. The value of your percentage of the pool as a ratio to the value of the reward is how the APY is calculated.
Details are in the open-source reward.libre smart contract. Click below to see the code.