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

GetPositionTokensOwed

func GetPositionTokensOwed(poolPath, key string) (int64, int64, error)

GetPositionTokensOwedInfos returns the amount of tokens owed for both tokens. Parameters:

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

Returns:

  • int64: Amount of token0 owed to the position, in token base units.
  • int64: Amount of token1 owed to the position, in token base units.
  • 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.GetPositionTokensOwed(,)"

Result