From 56463eca14aed909ada9c3118be1cfe706367567 Mon Sep 17 00:00:00 2001 From: Denali Marsh Date: Thu, 5 Aug 2021 15:53:56 +0200 Subject: [PATCH] update committee allowed paramas (#978) --- migrate/v0_15/migrate.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/migrate/v0_15/migrate.go b/migrate/v0_15/migrate.go index 629d5e52..89541013 100644 --- a/migrate/v0_15/migrate.go +++ b/migrate/v0_15/migrate.go @@ -225,7 +225,7 @@ func Committee(genesisState v0_14committee.GenesisState) v0_15committee.GenesisS v0_15committee.AllowedParam{Subspace: "hard", Key: "MinimumBorrowUSDValue"}, v0_15committee.AllowedParam{Subspace: "incentive", Key: "HardSupplyRewardPeriods"}, v0_15committee.AllowedParam{Subspace: "incentive", Key: "HardBorrowRewardPeriods"}, - v0_15committee.AllowedParam{Subspace: "incentive", Key: "HardDelegatorRewardPeriods"}, + v0_15committee.AllowedParam{Subspace: "incentive", Key: "DelegatorRewardPeriods"}, } newHardSubParamPermissions.AllowedParams = hardComAllowedParams @@ -256,11 +256,12 @@ func Committee(genesisState v0_14committee.GenesisState) v0_15committee.GenesisS var newSwapCommitteePermissions []v0_15committee.Permission var newSwapSubParamPermissions v0_15committee.SubParamChangePermission - // TODO: add additional incentive params that manage LP rewards + // Allowed params permissions swpAllowedParams := v0_15committee.AllowedParams{ v0_15committee.AllowedParam{Subspace: "swap", Key: "AllowedPools"}, v0_15committee.AllowedParam{Subspace: "swap", Key: "SwapFee"}, - v0_15committee.AllowedParam{Subspace: "incentive", Key: "HardDelegatorRewardPeriods"}, + v0_15committee.AllowedParam{Subspace: "incentive", Key: "DelegatorRewardPeriods"}, + v0_15committee.AllowedParam{Subspace: "incentive", Key: "SwapRewardPeriods"}, } newSwapSubParamPermissions.AllowedParams = swpAllowedParams