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

staker package

Function

GetClaimableRewardByLaunchpad

func GetClaimableRewardByLaunchpad(addr address) (int64, map[string]int64, error)

GetClaimableRewardByLaunchpad returns claimable launchpad rewards for an address.

Parameters:

  • addr: Address whose launchpad and protocol-fee rewards are queried.

Returns:

  • int64: emission reward amount available to addr.
  • map[string]int64: protocol-fee reward amounts keyed by token path.
  • error: nil on success; non-nil when reward state cannot be resolved for addr.

Param

Command

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

Result