LedgerLuminary 发表于 2024-6-14 01:40:13

Filecoin代币FIL的释放方式已固定,区块爆块奖励的理论值速查表请查收

摘要: Filecoin代币FIL的释放方式近期做出了微调,调整后的方案更接近自然界C14的放射性衰减模式。 <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">本文由IPFS原力区原创 作者 Steven Li(胡飞瞳)</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">摘要</strong></p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">大家都知道 Filecoin 的出块奖励是每 6 年减半,也有很多人了解是线性递减。白皮书上说,调节周期为一周,但最新的进展表明,Filecoin完全不需要调节周期。参照自然界放射性元素的衰减模式,Filecoin的实现可以更简单,而且可以实现彻底的线性递减。 </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">一个简单的速查表</strong></p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">连续10年每年的第一个区块爆块奖励的理论值速查表。精</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">确到 attoFIL (小数点后第18位,Filecoin交易的的最小单位。) </p><img src="https://p3-sign.toutiaoimg.com/pgc-image/RfmjhMGFF3sysj~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718425730&amp;x-signature=P0ppPSoqps2KSEy88JuBwf88Zso%3D" style="width: 100%; margin-bottom: 20px;">
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">最新算法公式</strong></p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">根据 Filecoin 研究小组最新发布的设计模式,Filecoin区块奖励将不再使用调节周期,而是每一轮都自动调节,仿照自然界放射性衰减的法则,按照指数递减模式调节。为了节省时间,本文首先直接给出公式: </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">每一轮的区块奖励与网络中还未挖出的 FIL 数量数量(下面公式中的Remaining)相关,按照指数衰减,半衰期为6年。 </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">区块奖励公式:</strong></p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注1:这里的单位是 attoFIL, 1FIL = 10^18 FIL</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注2: 当Remaining(未挖出的币量)小于 10^11,这个奖励值就归零了,不能再挖出币。那时,矿工的收入将完全是交易费。</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注3:1400000000 是系统最初保有币的总量,也即挖矿产生的总量,共14亿枚FIL。</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注4: 可以看出,第一轮的奖励数为:153.856861913558700202 FIL。</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">第n轮后网络中还保有的FIL数量(未挖出部分)</strong>:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">大致也可以写为: </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注1:这里 0.9999998901022414903152 是衰减因子,表示每一轮系统维持比例</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注2:由于预期共识可能出现空块或一轮多块的情况,这里只是理论值,实际值可能有差异</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">第n轮区块奖励FIL数量</strong>:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">根据上面两个式子可以很容易地推算出,第n轮的奖励(单位attoFIL)为:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">也可以化为如下公式(单位 FIL): </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注1:计算精度取小数点后第18位。</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">注2:此为理论值,实际值可能由于预期共识引起挖矿的不均衡性造成差异。</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">算法如何得来?</strong></p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">熟悉考古学的同学们都应该知道 C14 测年法。C14是一种自然界生物体内含量恒定的放射性元素。当但生物死去,其不再摄入C14,体内的C14按照放射性元素规律衰减,其半衰期大约为5730年左右。根据测定其化石的放射性C14含量,就可以大致估算出生物生成的年代。 </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">这与Filecoin有什么关系呢?</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">我们知道,区块链本身是具有生命的。一条公链一旦诞生,就会自我生长,婴儿期可能需要大家关爱和照顾,但一旦长成,就能自我抵御风雨。 </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">比特币10年来成长的历程可以证明这一点,Filecoin也是一样。既然区块链本身就是数字世界的生命,那么与其伴随而生的数字货币也应该具有自然属性。数字货币的发放规律通常按照一定规律递减,这与元素的放射性类似。那么是否可以采用同样的规律来发放奖励呢?</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">答案是肯定的;Filecoin 的做法就是如此。 </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Filecoin规定,其代币发放(仅指区块奖励部分)采用半衰期为 6 年的释放方式,完全模仿自然界放射性元素的衰变规律。具体说来,就是每一轮的衰减比例是相同的。也就是说每一轮发放奖励之后余下的币总量与上一轮余下的币的总量是相同的。也就是说是: </p><img src="https://p3-sign.toutiaoimg.com/pgc-image/RfmjhWKvLKd7v~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718425730&amp;x-signature=KLHQdzqGmJoM0byDImXzPq%2Fy9E4%3D" style="width: 100%; margin-bottom: 20px;">
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">这里 d 是衰减因子,是一个常数,我们也知道 Remaining(0) = 1400000000FIL,也就是说是14亿。那么可以推算出:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">而同时由知道六年减半,因为现在定义每30秒一个区块,6年的区块数为:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">同时有:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">也就是说:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">也即:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">d ~= 0.99999989010224149031521414</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">这里 d 就是衰减指数 </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">因此,第一轮释放的 FIL 数量为: </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">1400000000 * (1-d) = <strong style="color: blue;">153.856861913558700202</strong>(保留18位小数)</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">有了第一轮的奖励数量,之后各轮的计算就更简单了。具体可参考如下推导过程(注意公式格式有所简化):</p><img src="https://p3-sign.toutiaoimg.com/pgc-image/RfmjhkLBrgQbuN~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1718425730&amp;x-signature=ys3kypt0H8nMb0YiY%2FdIUfkxdy0%3D" style="width: 100%; margin-bottom: 20px;">
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">由前面的推导知道:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">R(1) = 153856861913558700202 attoFIL</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">Remaining(0) = 1400000000 * 10^18 attoFIL </p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">那么:</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">回到文首看一看,其实这就是本文中的第一个公式。这样,在实际的计算中,就可以根据每一轮剩余的币量乘以一个固定的比例,推算出出块奖励的数量。每轮递减,6年减半,完成!</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">—END—</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">【IPFS原力区】</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">价值观:价值 共建 共享 荣耀</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;">总部位于上海,聚集基于分布式网络&amp;存储的众多技术大咖和爱好者,深耕基于 IPFS的商业生态建设和社区发展。</p>
    <p style="font-size: 18px; line-height: 40px; text-align: left; margin-bottom: 30px;"><strong style="color: blue;">(作者:IPFS原力区,内容来自链得得内容开放平台“得得号”;本文仅代表作者观点,不代表链得得官方立场)</strong></p>


页: [1]
查看完整版本: Filecoin代币FIL的释放方式已固定,区块爆块奖励的理论值速查表请查收