iBGT rewards
How does Proof of Liquidity reward users?
Proof of Liquidity rewards users with BGT. That BGT can be delegated to Berachain network validators in order to earn even more incentives.
How does Infrared reward users?
Infrared users receive rewards when they deposit to an Infrared vault. As the assets in the vault earn BGT from interacting with Proof of Liquidity, Infrared’s smart contracts issue iBGT back to depositors of the vault.
Users can then decide to either:
- Use their iBGT throughout DeFi
- Stake their iBGT to earn the delegation rewards associated with BGT.
What can I expect from staking iBGT?
When an Infrared vault earns BGT, that BGT is used to power Infrared validators, which earn a variety of rewards from bribes and native dapps.
Thus, staked iBGT receives these rewards.
APR calculation
Explains the method to calculate the APR of rewards distributed by the IMultiRewards
contract. The APR represents the annualized rate of rewards for stakers and is derived based on the rewardRate
function, which specifies rewards distributed per second.
-
Accessing reward rate
The
rewardRate
is a component of theReward
struct, which stores data on rewards distributed for a specific token in the contract. To get therewardRate
, call therewardData
function: -
Calculating total reward over a 30-day period
To calculate the total rewards distributed over a 30-day period, use historical data. Formula:
Steps: For each day, multiply the reward rate for that day (rewardRate_n) by the total seconds in a day (86,400). Convert the daily reward into asset value using the historical price of iBGT for that day. If historical data is not available (e.g., within the first 30 days after launch), use as much historical data as possible for the calculation.
-
Annualizing the rewards
To annualize the rewards:
-
Fetching the total staked value
The total staked value can be found using the
totalSupply
function in theMultiRewards.sol
contract: -
Calculating the APR
Finally, calculate the APR using the annual reward value and the total staked value:
Using a 30-day lookback average ensures that large changes do not disproportionately impact the APR.