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

community_pool package

Overview

Package community_pool manages the GnoSwap community treasury.

This contract holds protocol-owned assets that can be allocated through governance proposals. It receives a portion of GNS emissions and can be used for ecosystem development, grants, and protocol improvements.

Function

GetBalanceOf

func GetBalanceOf(tokenPath string) int64

GetBalanceOf returns the balance of a specific token held by the community pool.

Parameters:

  • tokenPath: the path to the token contract (e.g., "gno.land/r/gnoswap/gns")

Returns the balance of the specified token held by the community pool.

Param

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/gnoswap/community_pool.GetBalanceOf()"

Result