func (k Keeper) GetParams(ctx sdk.Context) types.Params {
	return types.NewParams(
		k.CreatePoolFee(ctx),
		k.MaxRewardCategories(ctx),
	)
}
GetParams gets all parameteras as types.Params
package keeper
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
	paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
	"github.com/irisnet/irismod/modules/farm/types"
)
func ParamKeyTable() paramstypes.KeyTable {
	return paramstypes.NewKeyTable().RegisterParamSet(&types.Params{})
}
func (k Keeper) CreatePoolFee(ctx sdk.Context) (fee sdk.Coin) {
	k.paramSpace.Get(ctx, types.KeyCreatePoolFee, &fee)
	return
}
func (k Keeper) MaxRewardCategories(ctx sdk.Context) (maxRewardCategories uint32) {
	k.paramSpace.Get(ctx, types.KeyMaxRewardCategories, &maxRewardCategories)
	return
}
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) (fee sdk.Coin) {
	k.paramSpace.SetParamSet(ctx, &params)
	return
}