Skip to content

Commit

Permalink
Merge pull request #27 from vantuz-subhuman/master
Browse files Browse the repository at this point in the history
#25 Change default tx size to 458 bytes
  • Loading branch information
vsubhuman committed Jul 28, 2018
2 parents 4f4613b + 1377267 commit 4e045d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cardano-calculator/assets/calc_parameters.json
Expand Up @@ -80,9 +80,9 @@
"is_cleave": false,
"inp_tip": "Cannot be less than 1",
"min": 1,
"value": 350,
"value": 458,
"value_type": "int",
"ctx_tip": "Average translation fee (Average taxed block reward)"
"ctx_tip": "Average transaction fee (Average taxed block reward)"
}
]
},
Expand Down
20 changes: 10 additions & 10 deletions cardano-calculator/index.html
Expand Up @@ -145,7 +145,7 @@ <h2 class="mb-5">Formula explanation</h2>
<!--<li><a href="https://www.cardano.org/en/staking/">Cardano staking explained</a></li>-->
<li><a href="https://forum.cardano.org/t/summary-pos-delegation-incentives-lars-brunjes/11880">Cardano staking explained</a></li>
<li><a href="https://adatracker.com/charts">AdaTracker charts (to approximate transaction number)</a></li>
<li><a href="https://cardanoexplorer.com">Official Cardano explorer, to calculate average transaction size</a></li>
<li><a href="https://github.com/antipalos/istoria/blob/master/explorer/cardano_explorer_latest_stats_2018-07-27.json">"Antipalos" project stats calculated from official explorer</a></li>
</ol>

<h3>Parameters require for calculations:</h3>
Expand Down Expand Up @@ -235,16 +235,16 @@ <h4>Fees</h4>

<p class="zero-margin">For example: if we take current average number of transaction from
<a href="https://adatracker.com/charts">the actual tracker</a> it would be around 15,000.
And if we take an average transaction size to be 350 byte, as can be seen in the explorer.
And if we take an average transaction size to be 458 byte, as can be seen in the statistics.
Then we could calculate:</p>

<div class="codeblock">

<code>
TX_YEAR = 73 * 15,000 = 1,095,000<br/>
FIXED_FEES = 1,095,000 * 0.155381 = 170,142.195<br/>
SIZE_FEES = 1,095,000 * 350 * 0.000043946 = 16,842.3045<br/>
FEES = 170,142.195 + 16,842.3045 = 186,984.4995
SIZE_FEES = 1,095,000 * 458 * 0.000043946 = 22,039.35846<br/>
FEES = 170,142.195 + 22,039.35846 = 192,181.55346
</code>

</div>
Expand All @@ -271,8 +271,8 @@ <h4>Tax</h4>
<div class="codeblock">

<code>
UNTAXED_REWARD = 659,656,979.315 + 186,984.4995 = 659,843,963.815<br/>
TAXED_REWARD = 659,843,963.815 - 20% = 527,875,171.052<br/>
UNTAXED_REWARD = 659,656,979.315 + 192,181.55346 = 659,849,160.868<br/>
TAXED_REWARD = 659,849,160.868 - 20% = 527,879,328.694<br/>
SHARE = STAKE / TOTAL_STAKE<br/>
REWARD_SHARE = TAXED_REWARD * SHARE
</code>
Expand All @@ -294,20 +294,20 @@ <h4>Tax</h4>

<code>
SHARE = 42,000 / 15,000,000,000 = 0.0000028<br/>
REWARD_SHARE = 527,875,171.052 * 0.0000028 = 1,478.05047
REWARD_SHARE = 527,879,328.694 * 0.0000028 = 1,478.06212
</code>

</div>

<p>This shows us that a person with a 42K coins stacked would receive <b>ROUGHLY</b>
about 1,478.05047 in a year, but <b>ONLY IF</b> there would be 15 billions of total stake.</p>
about 1,478.06212 in a year, but <b>ONLY IF</b> there would be 15 billions of total stake.</p>

<h4>Pools fees</h4>

<div class="codeblock mb-3">

<code>
RESULT_REWARD = 1,478.05047 - 5% = 1,404.14794
RESULT_REWARD = 1,478.06212 - 5% = 1,404.159014
</code>

</div>
Expand All @@ -316,7 +316,7 @@ <h4>Pools fees</h4>
of the pool registration. For example: if we take a <b>completely arbitrary</b> number of 5%,
then calculations would go like:</p>

<p>This gives us the final <b>APPROXIMATE</b> yearly profit of 1,404.14794 for a 42K stake, or 3.34%.</p>
<p>This gives us the final <b>APPROXIMATE</b> yearly profit of 1,404.159014 for a 42K stake, or 3.34%.</p>

</div>

Expand Down

0 comments on commit 4e045d3

Please sign in to comment.