LiskArchive/lisk-dex-core

Modify computeTokenGenesisAsset functionanility for DEX sidechain configuration

Naureen1lightcurve opened this issue · 0 comments

Description

The account with address ADDRESS_LIQUIDITY_PROVIDER_INCENTIVES must be initialized before the second block, since Token.mint() in afterTransactionsExecute of the first block requires account initialization fee to be paid. Therefore, computeTokenGenesisAsset function needs to be modified.

  • The array tokenDistribution.accounts must contain an entry for the addresses ADDRESS_LIQUIDITY_PROVIDER_INCENTIVES and ADDRESS_VALIDATOR_INCENTIVES both with balance property equal to 0 so the corresponding accounts are initialized during the processing of the genesis block. This is also done in addition to issue #225.

Acceptance Criteria

  • Added the unit test to check that the account with address ADDRESS_LIQUIDITY_PROVIDER_INCENTIVES is initialized.

Additional Information