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

GetSlot0FeeProtocol

func GetSlot0FeeProtocol(poolPath string) (uint8, error)

GetSlot0FeeProtocol returns the protocol fee rate from slot0. Parameters:

  • poolPath: Canonical pool path identifying the pool to query.

Returns:

  • uint8: Packed protocol-fee denominator configuration from slot0; token0 occupies the low nibble and token1 the high nibble.
  • 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.GetSlot0FeeProtocol()"

Result