1

如何计算质押奖励

 3 years ago
source link: https://learnblockchain.cn/question/2732
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
如何计算质押奖励 | 登链社区 | 技术问答

如何计算质押奖励

Hi Guys,我遇到一些问题,有些困惑

假设存在 A 与 B 2种Token,其中质押 A 可以获取 B,B 的奖励率为固定的,例如1小时产出10颗,提供给所有质押者,结算规则可能是 hour_rewards = total_mint_one_hour * (user_staking / total_staking)

但合约并不像中心化服务端程序一样,可以在服务端进行计划任务实时结算

所以想要请教,如何实时结算奖励,以及在前端如何计算出实时的奖励数据?


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK