Modify computeTokenGenesisAsset functionanility for DEX sidechain configuration
Naureen1lightcurve opened this issue · 0 comments
Naureen1lightcurve commented
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 addressesADDRESS_LIQUIDITY_PROVIDER_INCENTIVES
andADDRESS_VALIDATOR_INCENTIVES
both withbalance
property equal to0
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.