-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
21 lines (18 loc) · 1.34 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package types
import errorsmod "cosmossdk.io/errors"
// DONTCOVER
// Incentive module errors
var (
ErrClaimNotFound = errorsmod.Register(ModuleName, 2, "no claimable rewards found for user")
ErrRewardPeriodNotFound = errorsmod.Register(ModuleName, 3, "no reward period found for collateral type")
ErrInvalidAccountType = errorsmod.Register(ModuleName, 4, "account type not supported")
ErrNoClaimsFound = errorsmod.Register(ModuleName, 5, "no claimable rewards found")
ErrInsufficientModAccountBalance = errorsmod.Register(ModuleName, 6, "module account has insufficient balance to pay claim")
ErrAccountNotFound = errorsmod.Register(ModuleName, 7, "account not found")
ErrInvalidMultiplier = errorsmod.Register(ModuleName, 8, "invalid rewards multiplier")
ErrZeroClaim = errorsmod.Register(ModuleName, 9, "cannot claim - claim amount rounds to zero")
ErrClaimExpired = errorsmod.Register(ModuleName, 10, "claim has expired")
ErrInvalidClaimType = errorsmod.Register(ModuleName, 11, "invalid claim type")
ErrDecreasingRewardFactor = errorsmod.Register(ModuleName, 13, "found new reward factor less than an old reward factor")
ErrInvalidClaimDenoms = errorsmod.Register(ModuleName, 14, "invalid claim denoms")
)