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

GetProtocolFeesToken1

func GetProtocolFeesToken1(poolPath string) (int64, error)

GetProtocolFeesToken1 returns accumulated protocol fees for token1. Parameters:

  • poolPath: Canonical pool path identifying the pool whose fees are read.

Returns:

  • int64: Accumulated protocol fee for token1, in token base units.
  • error: Non-nil when poolPath does not identify an existing pool.

Param

Command

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

Result