Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    9,778,045.6KRW

    -3.3%

  • ETH

    190,443.2KRW

    -2.9%

  • XRP

    264.9KRW

    -3.8%

  • BCH

    382,703.4KRW

    -4.8%

  • BSV

    309,274.1KRW

    -13.1%

  • USDT

    1,169.6KRW

    0.2%

  • EOS

    4,170.1KRW

    -2.3%

  • LTC

    54,759.1KRW

    -0.5%

  • BNB

    19,877.6KRW

    -3.8%

  • XLM

    68.2KRW

    -5.3%

  • ADA

    50.5KRW

    -5.1%

  • TRX

    19.2KRW

    -4.5%

  • XMR

    72,837.8KRW

    -3.8%

  • XTZ

    1,783.7KRW

    -4.7%

  • ETC

    10,024.1KRW

    -7.2%

  • DASH

    118,398.9KRW

    -6.1%

  • ATOM

    5,203.7KRW

    -2.8%

  • NEO

    12,284.5KRW

    -6.8%

  • HT

    3,611.1KRW

    -4.7%

  • HEDG

    2,851.6KRW

    -2.0%

  • MKR

    536,774.3KRW

    -3.2%

  • USDC

    1,167.4KRW

    -0.1%

  • ZEC

    57,440.5KRW

    -5.7%

  • ONT

    743.9KRW

    -4.1%

  • XEM

    46.2KRW

    -2.7%

  • VET

    6.5KRW

    -5.5%

  • BAT

    242.6KRW

    -5.1%

  • DOGE

    2.7KRW

    -3.2%

  • PAX

    1,175.3KRW

    0.4%

  • DCR

    20,142.1KRW

    -8.2%

  • QTUM

    2,187.6KRW

    -5.4%

  • BTG

    11,495.1KRW

    -8.2%

  • INB

    552.8KRW

    -2.0%

  • REP

    15,462.4KRW

    -5.1%

  • LINK

    485.1KRW

    2.0%

  • TUSD

    1,172.0KRW

    0.5%

  • ZRX

    265.1KRW

    -6.6%

  • RVN

    29.8KRW

    -4.5%

  • ALGO

    277.3KRW

    -3.1%

  • CNX

    2,356.2KRW

    -3.7%

  • XIN

    276,716.7KRW

    4.5%

  • XIN

    276,716.7KRW

    4.5%

  • OMG

    899.9KRW

    -5.9%

  • BCD

    622.5KRW

    -9.5%

  • THETA

    126.3KRW

    -6.5%

  • BTM

    106.6KRW

    15.8%

  • BTM

    106.6KRW

    15.8%

  • LSK

    870.1KRW

    3.6%

  • NANO

    773.1KRW

    -3.7%

  • WAVES

    994.3KRW

    -0.9%

  • KCS

    1,190.0KRW

    -1.4%

  • DGB

    7.4KRW

    -3.8%

  • ICX

    177.7KRW

    -1.0%

  • MONA

    1,351.4KRW

    -5.6%

  • KMD

    747.7KRW

    -9.4%

  • MCO

    5,282.8KRW

    -5.0%

  • ENJ

    102.0KRW

    15.0%

  • IOST

    6.2KRW

    -2.4%

  • SC

    1.7KRW

    -5.5%

  • HC

    1,592.5KRW

    -4.9%

  • XVG

    4.2KRW

    -4.8%

  • STEEM

    185.9KRW

    -6.0%

  • ABBC

    119.4KRW

    -0.7%

  • NEXO

    115.5KRW

    -6.4%

  • BCN

    0.3KRW

    2.9%

  • BTS

    21.9KRW

    -4.5%

  • ZIL

    5.9KRW

    -1.9%

  • AE

    187.9KRW

    -5.1%

  • XZC

    5,636.6KRW

    -6.9%

  • ARDR

    49.5KRW

    -4.8%

  • MATIC

    18.6KRW

    -5.7%

  • MAID

    100.7KRW

    -4.9%

  • QNT

    3,751.2KRW

    -6.0%

  • ETN

    4.4KRW

    -1.5%

  • GNT

    44.2KRW

    -10.7%

  • SNT

    11.9KRW

    -6.4%

  • MANA

    38.1KRW

    -5.4%

  • STRAT

    385.0KRW

    -4.3%

  • ELF

    69.8KRW

    -0.2%

  • BEAM

    703.6KRW

    0.2%

  • TOMO

    529.6KRW

    -4.8%

  • GRIN

    1,141.2KRW

    -4.8%

  • NPXS

    0.2KRW

    -3.7%

  • ELA

    1,783.9KRW

    -4.5%

  • AION

    84.1KRW

    6.2%

  • DAI

    1,139.0KRW

    -2.3%

  • PAI

    20.1KRW

    19.8%

  • PAI

    20.1KRW

    19.8%

  • FET

    43.9KRW

    -2.8%

  • LRC

    28.2KRW

    -4.8%

  • WAX

    26.1KRW

    -0.7%

  • WTC

    454.3KRW

    -7.6%

  • TRUE

    297.9KRW

    -3.8%

  • RDD

    0.8KRW

    -0.8%

  • POWR

    50.6KRW

    -2.7%

  • LAMB

    31.2KRW

    -1.4%

  • PPT

    398.9KRW

    -0.2%

  • ARK

    179.1KRW

    -6.8%

  • LOOM

    21.7KRW

    -1.3%

  • R

    43.3KRW

    2.5%

  • ANT

    661.1KRW

    -2.7%

  • FCT

    2,288.6KRW

    -4.7%

  • FTM

    10.8KRW

    -3.9%

  • PIVX

    307.7KRW

    -2.0%

  • BNT

    249.4KRW

    -2.7%

  • DENT

    0.2KRW

    -16.4%

  • MOAC

    239.6KRW

    -4.1%

  • ODE

    67.2KRW

    -5.2%

  • ABT

    148.3KRW

    -6.0%

  • CET

    16.2KRW

    -3.0%

  • OCEAN

    40.6KRW

    -5.1%

  • TTC

    34.8KRW

    3.3%

  • AOA

    1.8KRW

    -0.6%

  • POLY

    21.4KRW

    -7.6%

  • REPO

    68.2KRW

    -5.3%

  • CPT

    2.0KRW

    0.2%

  • PAY

    45.0KRW

    -2.0%

  • MBL

    1.6KRW

    -1.2%

  • INS

    180.4KRW

    -4.1%

  • BCV

    6.2KRW

    2.5%

  • BORA

    8.2KRW

    -7.4%

  • COSM

    8.1KRW

    -0.9%

  • BAAS

    1.0KRW

    -1.0%

  • UPP

    14.2KRW

    -4.8%

  • GUSD

    1,148.0KRW

    -0.8%

  • FLETA

    8.6KRW

    -6.2%

  • FNB

    2.1KRW

    -0.3%

  • AERGO

    33.2KRW

    1.0%

  • RBG

    1.1KRW

    -2.4%

  • HUM

    6.1KRW

    -4.2%

  • EOSC

    2.9KRW

    1.4%

  • MVL

    0.4KRW

    -5.7%

  • DCC

    0.9KRW

    0.3%

  • LKY

    48.9KRW

    0.3%

  • eDEL

    2.4KRW

    -0.7%

  • VRA

    0.5KRW

    -3.5%

  • ABL

    6.5KRW

    -4.3%

  • RBTC

    9,360,192.6KRW

    -3.5%

  • TEMCO

    0.4KRW

    -2.2%

  • MEETONE

    0.6KRW

    -2.2%

  • AMON

    1.8KRW

    7.6%

  • PXL

    20.8KRW

    -2.1%

  • AID

    1.8KRW

    12.4%

  • AKRO

    0.8KRW

    6.1%

  • XRA

    7.8KRW

    2.8%

  • CLB

    1.4KRW

    -0.8%

  • WET

    3.9KRW

    -0.8%

  • NEWS

    1.7KRW

    -5.2%

  • WIKEN

    1.5KRW

    -2.8%

  • PTON

    0.0KRW

    -12.1%

  • SEAL

    0.7KRW

    -2.7%

  • NPER

    3.4KRW

    0.3%

  • PUB

    0.1KRW

    -2.7%

  • HORUS

    0.2KRW

    -2.9%

  • KARMA

    0.0KRW

    -1.8%

  • PUT

    1.4KRW

    -3.9%

  • CCH

    0.0KRW

    -12.8%

  • APIX

    0.6KRW

    --%

  • KNT

    0.0KRW

    -49.3%

  • IQ

    3.0KRW

    -5.9%

  • BLACK

    0.6KRW

    -59.9%

  • RCD

    3.0KRW

    --%

  • MCC

    4.4KRW

    0.3%

  • INC

    0.3KRW

    17.4%

  • BZKY

    0.3KRW

    0.3%

  • CRE

    1.3KRW

    -12.0%

Community

Aergo’s Fee 2.0

Aergo | 12.05| 56

We have successfully implemented an improved fee algorithm on the Aergo Mainnet. The previous algorithm was a simpler method in which additional fees were charged based on the payload size and the state usage size to the base of 0.002 AERGO as transaction fees. However, it is not a fair measurement since variables such as computational time or memory size were not being factored in. The new algorithm takes into account the CPU and memory usage used by the contract. This is a significant update to the Aergo Mainnet.

For this purpose, a gas system was introduced. In order to measure computation time for each transaction, the Bytecode instruction and the amount of gas consumed per built-in function is allocated.

The memory used by the VM and the update size of the state are also measured in gas. The total amount of gas measured is a numerical value corresponding to the calculation, not a fee. To calculate the fee, we use the concept of a gas price. Gas price is the AER value corresponding to 1 Gas.

This is a simple breakdown of the units involved comparing it to ETH (note that price is insignificant in this example, it’s for demonstration of the units and similarities)

1 ETH = 1 AERGO
1 GWEI = 1 GAER
1 WEI = 1 AER

Key Notes

  • All transactions in a block have the same gas price and is not determined by the user.
  • The gas price is also not a fixed value and it can be changed by DAO.
  • By adjusting the gas price, the contract ecosystem can be stabilized against rapid changes in AERGO’s market value. This is the reason for using gas price without converting gas directly to fee.

Gas Limit

The gas limit allows the user to specify the maximum amount of gas to be used for transactions and contracts. To this end, the new version of the tool and client library supports the Gas limit parameter. For compatibility with the previous version that did not specify a gas limit, the gas limit 0 is automatically used as the maximum gas limit you can specify. The contract will not continue to perform enough calculations to exhaust all of your balance, but user needs to be cautious about this.

Even if the user knows the Bytecode instruction and the gas amount of the basic function (the gas table will be provided in the Fee section of the 2.0 document), it is not easy to estimate the exact gas limit. Although the execution path of a contract can be understood in the Bytecode instructions, it is ultimately impossible for the user to predict the amount of memory used by the VM for the call stack and objects used by the VM. The best way to estimate the gas limit used by the contract is by actually using it.

The simplest way to simulate is to use brick. You can use brick to deploy and perform contracts without running the blockchain. In addition, you can check the results, gas usage, etc. It also has functions for debugging the contract.

Delegated Fee

As Fee 2.0 is set in place, it will be more expensive to execute the contract. Since the contract fee can be a burden on the dapp user, a new transaction type has been added in order to activate dapp. The provider pays the fee by subtracting from the contract the fee used to execute the contract.

If all users send this transaction type, the provider will be burdened as well. Thus, a function is specified to check the available users so that the user can set limits by defining the function in the contract according to the intention of the provider.

We hope that this paints a better picture of what Fee 2.0 is, how it works, the gas limits, and delegated fee.


Aergo’s Fee 2.0 was originally published in Aergo blog on Medium, where people are continuing the conversation by highlighting and responding to this story.

Comment 0

delete

Are you sure you want to delete this post?