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

pool package

Function

GetPositionFeeGrowthInsideLastX128

func GetPositionFeeGrowthInsideLastX128(poolPath, key string) (string, string, error)

GetPositionFeeGrowthInsideLastX128 returns the last recorded fee growth inside for both tokens. Parameters:

  • poolPath: Canonical pool path identifying the pool containing the position.
  • key: Position key identifying the position within the pool.

Returns:

  • string: Position's last token0 fee-growth-inside accumulator, serialized as a base-10 X128 value.
  • string: Position's last token1 fee-growth-inside accumulator, serialized as a base-10 X128 value.
  • error: Non-nil when the pool or position key cannot be found.

Params

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/pool.GetPositionFeeGrowthInsideLastX128(,)"

Result