-
Notifications
You must be signed in to change notification settings - Fork 28
/
params_legacy.go
33 lines (29 loc) · 1.12 KB
/
params_legacy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package types
import (
"github.com/irisnet/irismod/types/exported"
)
// Parameter store keys
var (
KeyFee = []byte("Fee") // fee key
KeyPoolCreationFee = []byte("PoolCreationFee") // fee key
KeyTaxRate = []byte("TaxRate") // fee key
KeyStandardDenom = []byte("StandardDenom") // standard token denom key
KeyUnilateralLiquidityFee = []byte("UnilateralLiquidityFee") // fee key
)
// ParamKeyTable returns the TypeTable for coinswap module
func ParamKeyTable() exported.KeyTable {
return exported.NewKeyTable().RegisterParamSet(&Params{})
}
// ParamSetPairs implements paramtypes.KeyValuePairs
func (p *Params) ParamSetPairs() exported.ParamSetPairs {
return exported.ParamSetPairs{
exported.NewParamSetPair(KeyFee, &p.Fee, validateFee),
exported.NewParamSetPair(KeyPoolCreationFee, &p.PoolCreationFee, validatePoolCreationFee),
exported.NewParamSetPair(KeyTaxRate, &p.TaxRate, validateTaxRate),
exported.NewParamSetPair(
KeyUnilateralLiquidityFee,
&p.UnilateralLiquidityFee,
validateUnilateraLiquiditylFee,
),
}
}