Add Neatcoin inflation parameters to apps-config (#5638)

* Add NEATCOIN_GENESIS to apps-config

* Add Neatcoin inflation parameters

* Fix linting issue
This commit is contained in:
Wei Tang 2021-06-20 07:01:08 +02:00 committed by GitHub
parent a466475dc5
commit 05d12f2048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -24,3 +24,5 @@ export const POLKADOT_DENOM_BLOCK = new BN(1248328);
export const ROCOCO_GENESIS = '0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779';
export const WESTEND_GENESIS = '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e';
export const NEATCOIN_GENESIS = '0xfbb541421d30423c9a753ffa844b64fd44d823f513bf49e3b73b3a656309a595';

View File

@ -3,7 +3,7 @@
import type { ApiPromise } from '@polkadot/api';
import { KUSAMA_GENESIS, POLKADOT_GENESIS } from '../constants';
import { KUSAMA_GENESIS, NEATCOIN_GENESIS, POLKADOT_GENESIS } from '../constants';
interface InflationParams {
auctionAdjust: number;
@ -25,6 +25,7 @@ const DEFAULT_PARAMS: InflationParams = {
const KNOWN_PARAMS: Record<string, InflationParams> = {
[KUSAMA_GENESIS]: { ...DEFAULT_PARAMS, auctionAdjust: (0.3 / 60), auctionMax: 60, stakeTarget: 0.75 },
[NEATCOIN_GENESIS]: { ...DEFAULT_PARAMS, stakeTarget: 0.75 },
[POLKADOT_GENESIS]: { ...DEFAULT_PARAMS, stakeTarget: 0.75 }
};