Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Pledge = hex.EncodeToString([]byte("pledge")) Staking = hex.EncodeToString([]byte("staking")) Redeem = hex.EncodeToString([]byte("redeem")) DelPid = hex.EncodeToString([]byte("delPid")) UnlockReward = 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") )
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.