common

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsaDecimals      = 18
	DefaultSleepTime = 2 * time.Second
	ZeroAddress      = "0000000000000000000000000000000000000000"
)

Variables

View Source
var AsaDecimalsBigInt = big.NewInt(AsaDecimals)

Functions

func FormatAmount

func FormatAmount(amt float64) string

func GetNormalizedValue

func GetNormalizedValue(rawValue *big.Int, decimals ...int) float64

Types

type BaseConfig

type BaseConfig struct {
	Enabled   bool `json:"Enabled"`
	QueueSize int  `json:"QueueSize"`
}

func DefaultBaseConfig added in v0.1.4

func DefaultBaseConfig() BaseConfig

func (BaseConfig) IsValid

func (cfg BaseConfig) IsValid() (bool, error)

Jump to

Keyboard shortcuts

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