Inflation

Bitxor engine supports increasing the native currency supply as time passes. The creation of an inflationary token empowers consortium and private networks to apply new token economic models that suit their needs.

Distribution

Networks with inflation configured can increase the currency token per block. In this case, the block reward includes the tokens created due to inflation. The harvester collects the newly created tokens, sharing them with the beneficiary when set.

The block creating currency tokens record an inflation receipt, listing the amount of tokens created.

Configuration

The starting-at-height-1 property defines the amount of currency tokens created per block. Besides, the incrementing ratio can vary depending on the block height. The last height determines the amount of inflation per block that will be created from then on.

starting-at-height-1 = 0
starting-at-height-2 = 300000000
starting-at-height-213333333 = 700000000
starting-at-height-213333334 = 0

The previous configuration example inflates 0 currency tokens per block from height 1 until the next starting-at-height-entry. Between the blocks 2 and 213333332, the currency token supply increases by 3 bxr units per block. Between the blocks 213333333 and 213333334, the currency token supply increases by 7 bxr units per block. Starting at height 213333334, new blocks will not trigger the creation of tokens.

The network configuration also describes the initial and maximum supply of the native currency token and new tokens. The maximum supply takes into account the inflation generated per-block.

Based on the current inflation + the initial supply,
The maximum supply is 160000000 + 640000000 = 800000000 BXR
initialCurrencyAtomicUnits = 16000000000000000
maxTokenAtomicUnits = 18446744073709551615