Module hydra_dx_math::liquidity_mining
source · Functions
This function calculate and return reward per share or error.
This function calculates global-farm rewards
Balance
or error.This function calculate yield farm’s shares amount
Balance
in GlobalFarm
or error.This function calculate loyalty multiplier or error.
General formula to calculate reward. Usage depends on type of rps and shares used for
calculations
This function calculate and return
(user_rewards, unclaimable_rewards)
.This function calculate account’s valued shares
Balance
or error.