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

consts.gno

0.54 Kb · 17 lines
 1package gnsmath
 2
 3const (
 4	// minTick is the minimum valid tick index in the concentrated liquidity model.
 5	// Represents the lowest possible price: 1.0001^(-887272) ≈ 0
 6	minTick = -887272
 7
 8	// maxTick is the maximum valid tick index in the concentrated liquidity model.
 9	// Represents the highest possible price: 1.0001^887272 ≈ infinity
10	maxTick = 887272
11
12	Q96_RESOLUTION  uint = 96
13	Q160_RESOLUTION uint = 160
14
15	MAX_UINT128 = "340282366920938463463374607431768211455" // 2^128 - 1
16	Q96         = "79228162514264337593543950336"           // 2^96
17)