Skip to content

Commit

Permalink
lessen v1 inflation (#103)
Browse files Browse the repository at this point in the history
* lessen extreme inflation
* upgrade version
  • Loading branch information
kpeluso authored Apr 1, 2024
1 parent 5e7c38d commit 448633d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions x/mint/types/minter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
)
}

Expand Down
4 changes: 2 additions & 2 deletions x/mint/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 448633d

Please sign in to comment.