transfertype

package
v1.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

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

func CalculatePledgeAmount(currentNetCapacity uint64) *big.Int

CalculatePledgeAmount file amount

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL