checks

package
v0.0.0-...-141c82c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarginScalingFactor

func MarginScalingFactor() func(interface{}) error

func MarginScalingFactorRange

func MarginScalingFactorRange(min, max num.Decimal) func(interface{}) error

func PriceMonitoringParametersAuctionExtension

func PriceMonitoringParametersAuctionExtension(min, max time.Duration) func(interface{}) error

func PriceMonitoringParametersHorizon

func PriceMonitoringParametersHorizon(min, max time.Duration) func(interface{}) error

func PriceMonitoringParametersProbability

func PriceMonitoringParametersProbability(min, max num.Decimal) func(interface{}) error

func RewardAssetUpdate

func RewardAssetUpdate(
	log *logging.Logger,
	assets Assets,
	collateral Collateral,
) func(value string) error

func SpamPoWHashFunction

func SpamPoWHashFunction(supportedFunctions []string) func(string) error

Types

type Assets

type Assets interface {
	IsEnabled(asset string) bool
}

type Collateral

type Collateral interface {
	AssetExists(asset string) bool
}

Jump to

Keyboard shortcuts

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