diff --git a/x/tokenomics/keeper/keeper.go b/x/tokenomics/keeper/keeper.go index a1e250755..648f828e5 100644 --- a/x/tokenomics/keeper/keeper.go +++ b/x/tokenomics/keeper/keeper.go @@ -92,9 +92,11 @@ func (k Keeper) MintAllocationsSum(ctx context.Context) float64 { mintAllocationDAO := params.GetMintAllocationDao() mintAllocationProposer := params.GetMintAllocationProposer() mintAllocationSupplier := params.GetMintAllocationSupplier() + mintAllocationSourceOwner := params.GetMintAllocationSourceOwner() return mintAllocationDAO + mintAllocationProposer + mintAllocationSupplier + - MintAllocationSourceOwner + MintAllocationApplication + mintAllocationSourceOwner + + MintAllocationApplication } diff --git a/x/tokenomics/keeper/token_logic_modules.go b/x/tokenomics/keeper/token_logic_modules.go index f56731648..c57aa0165 100644 --- a/x/tokenomics/keeper/token_logic_modules.go +++ b/x/tokenomics/keeper/token_logic_modules.go @@ -34,7 +34,6 @@ var ( const ( // TODO_BETA(@bryanchriswhite): Make all of these governance params - MintAllocationSourceOwner = 0.15 MintAllocationApplication = 0.0 // MintDistributionAllowableTolerancePercent is the percent difference that is allowable @@ -487,7 +486,8 @@ func (k Keeper) TokenLogicModuleGlobalMint( logger.Debug(fmt.Sprintf("sent (%v) newley minted coins from the tokenomics module to the DAO with address %q", daoCoin, k.GetAuthority())) // Send a portion of the rewards to the source owner - serviceCoin, err := k.sendRewardsToAccount(ctx, tokenomicstypes.ModuleName, service.OwnerAddress, &newMintAmtFloat, MintAllocationSourceOwner) + mintAllocationSourceOwner := k.GetParams(ctx).MintAllocationSourceOwner + serviceCoin, err := k.sendRewardsToAccount(ctx, tokenomicstypes.ModuleName, service.OwnerAddress, &newMintAmtFloat, mintAllocationSourceOwner) if err != nil { return tokenomicstypes.ErrTokenomicsSendingMintRewards.Wrapf("sending rewards to source owner: %v", err) } diff --git a/x/tokenomics/keeper/token_logic_modules_test.go b/x/tokenomics/keeper/token_logic_modules_test.go index 5cbf290b5..8e3cd4904 100644 --- a/x/tokenomics/keeper/token_logic_modules_test.go +++ b/x/tokenomics/keeper/token_logic_modules_test.go @@ -403,11 +403,12 @@ func TestProcessTokenLogicModules_TLMGlobalMint_Valid_MintDistributionCorrect(t mintAllocationDao := keepers.Keeper.GetParams(ctx).MintAllocationDao mintAllocationProposer := keepers.Keeper.GetParams(ctx).MintAllocationProposer mintAllocationSupplier := keepers.Keeper.GetParams(ctx).MintAllocationSupplier + mintAllocationSourceOwner := keepers.Keeper.GetParams(ctx).MintAllocationSourceOwner numTokensMinted := numTokensClaimed * tokenomicskeeper.GlobalInflationPerClaim numTokensMintedInt := cosmosmath.NewIntFromUint64(uint64(numTokensMinted)) daoMint := cosmosmath.NewInt(int64(numTokensMinted * mintAllocationDao)) propMint := cosmosmath.NewInt(int64(numTokensMinted * mintAllocationProposer)) - serviceOwnerMint := cosmosmath.NewInt(int64(numTokensMinted * tokenomicskeeper.MintAllocationSourceOwner)) + serviceOwnerMint := cosmosmath.NewInt(int64(numTokensMinted * mintAllocationSourceOwner)) appMint := cosmosmath.NewInt(int64(numTokensMinted * tokenomicskeeper.MintAllocationApplication)) supplierMint := float32(numTokensMinted * mintAllocationSupplier)