PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/gnoswap/gnsmath/v1

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v1
Namespace
gnoswap / gnsmath
Files
11 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/gnoswap/gnsmath/v1
gno
0.9

Files (11)

  • README.mdmarkdown
  • gnomod.tomltoml
  • bit_math.gnogno
  • consts.gnogno
  • doc.gnogno
  • errors.gnogno
  • liquidity_math.gnogno
  • safe_math.gnogno
  • sqrt_price_math.gnogno
  • swap_math.gnogno
  • tick_math.gnogno
  • consts.gnogno
    1package gnsmath23const (4	// minTick is the minimum valid tick index in the concentrated liquidity model.5	// Represents the lowest possible price: 1.0001^(-887272) ≈ 06	minTick = -88727278	// maxTick is the maximum valid tick index in the concentrated liquidity model.9	// Represents the highest possible price: 1.0001^887272 ≈ infinity10	maxTick = 8872721112	Q96_RESOLUTION  uint = 9613	Q160_RESOLUTION uint = 1601415	MAX_UINT128 = "340282366920938463463374607431768211455" // 2^128 - 116	Q96         = "79228162514264337593543950336"           // 2^9617)18

    Functions

    not supported for pure packages by the node (vm/qfuncs)

    Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.