Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

pool package

Function

GetProtocolFeesTokens

func GetProtocolFeesTokens(poolPath string) (int64, int64, error)
Ask AI Claude ChatGPT

GetProtocolFeesTokens returns the accumulated protocol fees for both tokens. Parameters:

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

Returns:

  • int64: Accumulated protocol fee for token0, in token base units.
  • 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 "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/gnoswap/pool.GetProtocolFeesTokens()"

Result