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

position package

Function

IsInRange

func IsInRange(positionId uint64) (bool, error)

IsInRange reports whether a position's ticks contain the current pool tick.

Parameters:

  • positionId: position NFT token ID

Returns:

  • inRange: whether the position is currently in range
  • err: non-nil when positionId cannot be resolved or the associated pool tick cannot be read

Param

Command

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

Result