update committee allowed paramas (#978)

This commit is contained in:
Denali Marsh 2021-08-05 15:53:56 +02:00 committed by GitHub
parent 20560a16d7
commit 56463eca14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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