Replies: 2 comments
-
C_i is the total circulation amount, which should be equal to the sum of the live cells capacity when Block i is the head of the chain + S_i + the miner rewards of the ten blocks that have not yet been cast [i -9, i]. In the future, this equation may not hold, when the miner rewards are not enough to create a cell, this part of the miner rewards will not be cast directly. So the right side also has to add up the miner rewards that have not been cast because of this situation. C_i has the following destinations:
Among them, 1 + 2 + 5 - [i-9, i] The miner rewards of these ten blocks are equal to the total number of live cells. C_i includes primary issuance and genesis block, and is definitely not equal to sum(block_economic_state.issuance.secondary). Part of sum(block_economic_state.issuance.secondary) has been issued to miners through cellbase, and the rest is first deposited in S_i and deducted from S_i when the DAO is redeemed. So sum(block_economic_state.issuance.secondary) = miner_rewards_l2 + Redeemed DAO compensation + S_i The amount of S_i belonging to the treasury cannot be known because the DAO calculation does not need it, and there is no RPC to return this information. An accurate calculation method is: Calculate the total amount of compensation required if all DAO cells are redeemed in block i, deduct this part from S_i, and the remaining is the treasury. Because the starting points are different, this calculation can only be calculated one by one and then summed up, and there is no recursion that can be used. Since basically do not mention the treasury, it is recommended that the chart be divided into miner rewards, issued DAO compensation, and remaining secondary issuance not yet cast. Personally, I do not recommend using burn, one is that the treasury does not burn, just not cast, and the other is that it takes too much calculation to distinguish between S_i's treasury and unclaimed DAO compensation. -- Translated via Claude Original answer posted in ChineseC_i 是流通总量,应该等于在 Block i 作为链头时的 live cells capacity 之和 + S_i + [i -9, i] 这十个块还没铸造出来的矿工奖励。在未来这个等式有可能不成立,当矿工奖励不够创建出一个 cell,这部分矿工奖励就直接不铸造了。所以右边还得加上所以因为这种情况没有铸造出来的矿工奖励。 C_i 的去向有以下几种: 其中 1 + 2 + 5 - [i-9, i] 这十个块的矿工奖励等于 live cells 总量 C_i 是包含一级增发和创世块得,肯定不等于 sum(block_economic_state.issuance.secondary) 。sum(block_economic_state.issuance.secondary) 一部分是通过 cellbase 发给矿工了,剩下的都先存入 S_i,DAO 赎回再从 S_i 里扣。所以 sum(block_economic_state.issuance.secondary) = miner_rewards_l2 + 已领取的 DAO 补偿 + S_i 其中 S_i 里有多少是 treasury 的这个因为 DAO 计算不需要,所以没办法知道。因为也没有 RPC 会返回这个信息。一个准确的计算方法是: 计算如果把所有 DAO 中的 cell 在 block i 中赎回,计算所需要的补偿总额,从 S_i 里扣除掉这部分剩下的就是 treasury 了。因为起存点不同,这个计算只能是逐个计算再求和,也没有递归公司可以用,而且我们也基本不提 treasury,建议图表就分成 miner rewards, issued DAO compensation,和剩余未铸造的二级增发。个人不建议用 burn,一是 treasury 也没有 burn 只是没铸造,二是要区分 S_i 中的 treasury 和还没领取的 DAO 补偿计算量太大。 |
Beta Was this translation helpful? Give feedback.
-
I forgot a solution to calculate the unsettled DAO interest. Since explorer has already stored the total locked CKB in DAO. In block i, the secondary issuance for DAOi = where:
If we sum up DAOi from genesis, we get the total DAO compensation. If we substract the issued DAO compensation, we get the unsttled compensation still in |
Beta Was this translation helpful? Give feedback.
-
Hi there, we're going to sort out Nervos DAO-related logic/data in CKB Explorer and have made a sketch at https://docs.google.com/document/d/1BmRMycFFgPe67AJXs1z8VpqzMM3t7YtJAJTTwXFdrxg/
Among them, the equation at https://docs.google.com/document/d/1BmRMycFFgPe67AJXs1z8VpqzMM3t7YtJAJTTwXFdrxg/edit?disco=AAAAupRYkxY
is confusing and needs confirmation from the core team.
The explanation of these fields can be found in the docs.
Also, it would be greatly helpful if you can have a review on the docs.
Beta Was this translation helpful? Give feedback.
All reactions