Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5aaf3ae 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan1844 committed Oct 13, 2024
1 parent 9dac9cf commit 740e201
Show file tree
Hide file tree
Showing 6 changed files with 313 additions and 248 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,5 @@ <h1 id="java-tron">欢迎访问Java-tron用户手册!<a class="headerlink" href=

<!--
MkDocs version : 1.3.0
Build Date UTC : 2024-09-20 08:23:14.826469+00:00
Build Date UTC : 2024-10-13 15:14:14.317991+00:00
-->
12 changes: 6 additions & 6 deletions mechanism-algorithm/resource/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,25 +288,25 @@ <h3 id="1-energy">1. Energy的获取与消耗<a class="headerlink" href="#1-ener
<h4 id="_6">质押获得能量<a class="headerlink" href="#_6" title="Permanent link">&para;</a></h4>
<div class="highlight"><pre><span></span><code>freezeBalanceV2 frozen_balance [ResourceCode:0 BANDWIDTH,1 ENERGY]
</code></pre></div>
<p>通过质押TRX获取的Energy 额度 = 为获取Energy质押的TRX / 整个网络为获取Energy质押的TRX 总额 * 150_000_000_000</p>
<p>通过质押TRX获取的Energy 额度 = 为获取Energy质押的TRX / 整个网络为获取Energy质押的TRX 总额 * 180_000_000_000</p>
<p>也就是所有用户按质押的TRX数量平分固定额度的Energy,示例:</p>
<div class="highlight"><pre><span></span><code>如全网只有两个人A,B分别质押2TRX,2TRX。

二人质押获得的可用Energy分别是

A: 75_000_000_000 且energy_limit 为75_000_000_000
A: 75_000_000_000 且energy_limit 为90_000_000_000

B: 75_000_000_000 且energy_limit 为75_000_000_000
B: 75_000_000_000 且energy_limit 为90_000_000_000

当第三人C质押1TRX时。

三人质押获得的可用Energy调整为

A: 60_000_000_000 且energy_limit调整为60_000_000_000
A: 60_000_000_000 且energy_limit调整为72_000_000_000

B: 60_000_000_000 且energy_limit调整为60_000_000_000
B: 60_000_000_000 且energy_limit调整为72_000_000_000

B: 30_000_000_000 且energy_limit 为30_000_000_000
B: 30_000_000_000 且energy_limit 为36_000_000_000
</code></pre></div>
<h4 id="_7">能量的消耗<a class="headerlink" href="#_7" title="Permanent link">&para;</a></h4>
<p>在执行合约时,逐条指令计算并扣除账户能量,账户能量消耗的优先级如下:</p>
Expand Down
Loading

0 comments on commit 740e201

Please sign in to comment.