24

请教一下,质押代币按秒算奖励这个用合约怎么实现。如果出现单个帐号多次质押,多人加...

 4 years ago
source link: https://learnblockchain.cn/question/2298
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
请教一下,质押代币按秒算奖励这个用合约怎么实现。如果出现单个帐号多次质押,多人加入,这个奖励的比例要怎么分配 | 登链社区 | 技术问答

请教一下,质押代币按秒算奖励这个用合约怎么实现。如果出现单个帐号多次质押,多人加入,这个奖励的比例要怎么分配

Tiny熊 - 布道者 10小时前

  擅长:智能合约,以太坊

你可以看看 suisi 的代码。

suisi 按区块奖励本质上和按秒是一样的。

关键点: 计算出单位质押每秒可获得的累计收益,每个人的收益是质押量 乘 每秒可获得的累计收益 减 已经提取收益。

您需要登录后才可以回答问题,登录 或者 注册

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK