func (p Params) Validate() error {
	if !p.Fee.GT(sdk.ZeroDec()) || !p.Fee.LT(sdk.OneDec()) {
		return fmt.Errorf("fee must be positive and less than 1: %s", p.Fee.String())
	}
	return nil
}
Validate returns err if Params is invalid
package types
import (
	"fmt"
	"gopkg.in/yaml.v2"
	sdk "github.com/cosmos/cosmos-sdk/types"
	paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
var (
	KeyFee           = []byte("Fee")            
	KeyStandardDenom = []byte("StandardDenom")  
)
func NewParams(fee sdk.Dec) Params {
	return Params{
		Fee: fee,
	}
}
func ParamKeyTable() paramtypes.KeyTable {
	return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
}
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
	return paramtypes.ParamSetPairs{
		paramtypes.NewParamSetPair(KeyFee, &p.Fee, validateFee),
	}
}
func DefaultParams() Params {
	fee := sdk.NewDecWithPrec(3, 3)
	return Params{
		Fee: fee,
	}
}
func (p Params) String() string {
	out, _ := yaml.Marshal(p)
	return string(out)
}