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

GetUnclaimedFee

func GetUnclaimedFee(positionId uint64) (string, string, error)

GetUnclaimedFee returns the unclaimed fees for both tokens of a position as decimal strings.

Parameters:

  • positionId: position NFT token ID whose unclaimed fees are queried

Returns:

  • fee0: unclaimed token0 fee amount, represented as a decimal string
  • fee1: unclaimed token1 fee amount, represented as a decimal string
  • err: non-nil when positionId or the associated pool fee-growth data cannot be resolved

Param

Command

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

Result