A Detail explanation of EtherZero Power value

EtherZero
EtherZero
Aug 7, 2018 · 3 min read

First. Brief description

Power is an EtherZero-origin token, issued by PoS mechanism, and is not tradable. It is only used for the consumption of Gas at the time of EtherZero transaction.

All accounts with a balance greater than or equal to 0.01etz will continue to produce Power as the block grows until the Power limit is reached.

Check your own available power under console: eth.getPower(“your address”)

web3.fromWei(eth.getPower(“your address”), “ether”)

Second. The two properties of Power

1. the upper limit Max (the upper limit is determined by etz balance)

2. the speed of each block output speed (determined by etz balance)

Third. The realization principle of Power

1. An account of Power

Power = Min(PowerMax, BlockGap * PowerSpeed)

BlockGap = current block height — last transaction block height

2. Power consumed by a transaction

PowerSpend = Gas * GasPrice

For example, a Gas of general transfer is 21000 and GasPrice is 18Gwei.

18Gwei = 0.000,000, 018 ether

A normal transfer requires power = 21000 * 0.000000018 = 0.000378 ether

3. Power upper limit of one account PowerMax

PowerMax = (Math.exp(-1/(x*50)*10000)*10000000+200000)*0.000000018

For example, an account with a 0.01etz balance, PowerMax is 0.0036 ether,

Assume that GasPrice is set to 18Gwei (ie 0.000000018 ether),

The single transaction of this 0.01etz balance can be set up to Max = 0.0036 / 0.000000018 = 200000

In the case of GasPrice is 18Gwei, this account cannot send transactions with more than 200,000 gas.

Assume that GasPrice is set to 36Gwei (ie 0.000000036 ether),

The single transaction for this 0.01etz balance can be set up to Gas = 0.0036 / 0.000000018 = 100000

In the case of GasPrice is 36Gwei, this account cannot send transactions with more than 100,000 gas.

4. An account’s power recovery speed PowerSpeed

PowerSpeed = (Math.exp(-1/(x*2)*1000)*200000+1000)*0.000000018

For example, an account with a balance of 0 receives 0.01etz at a block height of 100.

Power of this account at block height 101 = (101–100) * 0.000018 = 0.000018

Power of this account at block height 102 = (102–100) * 0.000018 = 0.000036

Power of this account at block height 201 = (201–100) * 0.000018 = 0.0018

Power of this account at block height 301 = (301–100) * 0.000018 = 0.0036

Power of this account at block height 401 = (401–100) * 0.000018 = 0.0036 (will not continue to grow)

After the block height reaches 301, the upper limit has been reached. If you need to upgrade Power, you need to increase the account balance.

Fourth. Balance-Power Reference

From the available data in the above table, an account with a 2000etz balance, a single transaction with a consumption of Gas of 9.24 million (assuming GasPrice is set to 18 Gwei), can be used to continuously send 2 transactions in each block.

EtherZero

Written by

EtherZero

Build daily using DAPPs with EtherZero Platform.🙌🙌🙌 0 TX fee, instant pay and high scaling of thousands of TPS.Made by Dapp developers, for Dapp developers.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade