From 448633d100278c010f7242433539130730417e3e Mon Sep 17 00:00:00 2001 From: Kenny P <17100641+kpeluso@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:34:27 -0400 Subject: [PATCH] lessen v1 inflation (#103) * lessen extreme inflation * upgrade version --- docker-compose.yaml | 2 +- x/mint/types/minter.go | 4 ++-- x/mint/types/params.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index c2fe5be7a..524823c06 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,7 +4,7 @@ services: validator0: container_name: validator0 # build: . - image: "alloranetwork/allora-chain:v0.0.9" + image: "alloranetwork/allora-chain:v0.0.10" environment: - NETWORK=testnet - MONIKER=validator0 diff --git a/x/mint/types/minter.go b/x/mint/types/minter.go index 1a6472164..6eb0b4a23 100644 --- a/x/mint/types/minter.go +++ b/x/mint/types/minter.go @@ -20,8 +20,8 @@ func InitialMinter(inflation math.LegacyDec) Minter { return NewMinter( inflation, - // 2831000000000000000000 (initial uallo per block) * 6311520 (blocks per year) = 17867913120000000000000000 (initial annual provisions) - math.LegacyNewDecFromBigInt(math.NewUintFromString("17867913120000000000000000").BigInt()), + // 2831000000000000000 (initial uallo per block) * 6311520 (blocks per year) = 17867913120000000000000 (initial annual provisions) + math.LegacyNewDecFromBigInt(math.NewUintFromString("17867913120000000000000").BigInt()), ) } diff --git a/x/mint/types/params.go b/x/mint/types/params.go index b8b10e1d2..d7b7cf43e 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -44,9 +44,9 @@ func DefaultParams() Params { InflationMin: math.LegacyNewDecWithPrec(0, 2), GoalBonded: math.LegacyNewDecWithPrec(67, 2), BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5 second block times - MaxSupply: math.NewUintFromString("1000000000000000000000000000"), //1 billion allo * 1e18 (exponent) = 1e27 uallo + MaxSupply: math.NewUintFromString("1000000000000000000000000000"), // 1 billion allo * 1e18 (exponent) = 1e27 uallo HalvingInterval: uint64(25246080), - CurrentBlockProvision: math.NewUintFromString("2831000000000000000000"), // uallo per block + CurrentBlockProvision: math.NewUintFromString("2831000000000000000"), // uallo per block } }