Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

consts source pure

Functions 12

func Max160

1func Max160() *u256.Uint
source

Max160 returns 2^160 - 1, the maximum value representable in 160 bits.

func MaxInt128I256

1func MaxInt128I256() *i256.Int
source

MaxInt128I256 returns 2^127 - 1, the maximum int128 value, as a signed i256.

func MaxInt256

1func MaxInt256() *u256.Uint
source

MaxInt256 returns 2^255 - 1, the maximum int256 value, as an unsigned u256.

func MaxInt64I256

1func MaxInt64I256() *i256.Int
source

MaxInt64I256 returns 2^63 - 1, the maximum int64 value, as a signed i256.

func MaxSqrtRatio

1func MaxSqrtRatio() *u256.Uint
source

MaxSqrtRatio returns the maximum valid sqrt price ratio (1461446703485210103287273052203988822378723970342), equal to TickMathGetSqrtRatioAtTick(maxTick).

func MaxUint128

1func MaxUint128() *u256.Uint
source

MaxUint128 returns 2^128 - 1, the maximum uint128 value.

func MaxUint256

1func MaxUint256() *u256.Uint
source

MaxUint256 returns 2^256 - 1.

func MinInt64I256

1func MinInt64I256() *i256.Int
source

MinInt64I256 returns -2^63, the minimum int64 value, as a signed i256.

func MinSqrtRatio

1func MinSqrtRatio() *u256.Uint
source

MinSqrtRatio returns the minimum valid sqrt price ratio (4295128739), equal to TickMathGetSqrtRatioAtTick(minTick).

func Q128

1func Q128() *u256.Uint
source

Q128 returns 2^128, the Q128.128 fixed-point scaling factor.

func Q192

1func Q192() *u256.Uint
source

Q192 returns 2^192.

func Q96

1func Q96() *u256.Uint
source

Q96 returns 2^96, the Q64.96 fixed-point scaling factor.

Imports 2

Source Files 2