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 state

Back to all declarations

GetBalanceOf

func(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.

Open
OID
078143…a619:3
GetBalanceOf details

Inspect func

TransferToken

func(tokenPath string, to .uverse.address, amount int64)

TransferToken transfers tokens from the community pool. Parameters: - cur: current realm - tokenPath: token contract path - to: recipient address - amount: transfer amount Only callable by admin or governance.

Open
OID
078143…a619:5
TransferToken details

Inspect func
GetBalanceOf : func(tokenPath string) int64 Inspect
TransferToken : func(tokenPath string, to .uverse.address, amount int64) Inspect