-
Notifications
You must be signed in to change notification settings - Fork 197
/
keys.go
38 lines (28 loc) · 978 Bytes
/
keys.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
34
35
36
37
38
package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
const (
// ModuleName defines the module name
ModuleName = "claim"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// RouterKey is the message route for slashing
RouterKey = ModuleName
// QuerierRoute defines the module's query routing key
QuerierRoute = ModuleName
// ClaimRecordsStorePrefix defines the store prefix for the claim records
ClaimRecordsStorePrefix = "claimrecords"
// ParamsKey defines the store key for claim module parameters
ParamsKey = "params"
// ActionKey defines the store key to store user accomplished actions
ActionKey = "action"
// TotalWeightKey defines the store key for total weight
TotalWeightKey = "totalweight"
)
var (
// Percentages for actions
PercentageForFree = sdk.NewDecWithPrec(20, 2) //20%
PercentageForStake = sdk.NewDecWithPrec(20, 2) //20%
PercentageForLiquidStake = sdk.NewDecWithPrec(60, 2) //60%
)