constants

package
v0.0.0-...-77dd062 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Decimals18     = 18
	MoonSwapSymbol = "MLP"
	MoonSwapName   = "MoonSwap LP Token"
)

Variables

View Source
var (
	MinimumLiquidity = big.NewInt(1000)

	Zero  = big.NewInt(0)
	One   = big.NewInt(1)
	Two   = big.NewInt(2)
	Three = big.NewInt(3)
	Five  = big.NewInt(5)
	Ten   = big.NewInt(10)

	B100  = big.NewInt(100)
	B997  = big.NewInt(997)
	B1000 = big.NewInt(1000)
)
View Source
var (
	FactoryAddress = common.HexToAddress("0x865f55a399bf9250ae781adfbed71e70c12bd2d8")
	InitCodeHash   = common.FromHex("a6330451e4d6d3fc19f31fc5ee71147d88812b0da79f64b03ed210fd594d84e9")
)
View Source
var (
	SolidityTypeMaxima = map[SolidityType]*big.Int{
		Uint8:   big.NewInt(0xff),
		Uint256: math.MaxBig256,
	}
)

Functions

This section is empty.

Types

type ChainID

type ChainID int

ChainID network chain id

func (ChainID) String

func (i ChainID) String() string

type Rounding

type Rounding int
const (
	RoundDown Rounding = iota
	RoundHalfUp
	RoundUp
)

func (Rounding) Valid

func (r Rounding) Valid() bool

Valid check this rounding mode is valid

type SolidityType

type SolidityType string
const (
	Uint8   SolidityType = "uint8"
	Uint256 SolidityType = "uint256"
)

type TradeType

type TradeType int
const (
	ExactInput TradeType = iota
	ExactOutput
)

Jump to

Keyboard shortcuts

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