Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Pledge = strings.ToLower(hex.EncodeToString([]byte("pledge"))) Staking = strings.ToLower(hex.EncodeToString([]byte("staking"))) Redeem = strings.ToLower(hex.EncodeToString([]byte("redeem"))) DelPid = strings.ToLower(hex.EncodeToString([]byte("delPid"))) UnlockReward = strings.ToLower(hex.EncodeToString([]byte("unlockReward"))) )
View Source
var ( ErrDuplicatePledgedPid = errors.New("duplicate pledged pid") ErrInsufficientPledge = errors.New("insufficient funds for Pledge") ErrInsufficientRedeem1 = errors.New("insufficient funds for Redeem amount") ErrInsufficientRedeem2 = errors.New("unlockBlock not now") ErrNotPledged = errors.New("not pledged") ErrInsufficientUnlockRewardValue = errors.New("insufficient funds for UnlockReward") ErrInsufficientStakingValue = errors.New("the staking amount is too small,Minimum 1000") ErrInsufficientFundsForRedeem = errors.New("insufficient for redeem") ErrInvalidPeriods = errors.New("invalid periods") ErrInvalidDelPid = errors.New("invalid del pid") ErrInvalidPledgedValue = errors.New("invalid pledged value") )
Functions ¶
func CalculatePledgeAmount ¶ added in v1.8.3
CalculatePledgeAmount file amount
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.