common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsaDecimals      = 18
	DefaultSleepTime = 2 * time.Second
	AsaAddress       = "0x"
	DecimalDigits    = 5
)

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 (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