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

launchpad package

Function

GetProjectTierTotalDepositAmount

func GetProjectTierTotalDepositAmount(projectId string, tier int64) (int64, error)

GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.

Parameters:

  • projectId: unique identifier of the project containing the tier.
  • tier: tier duration key, such as 30, 90, or 180.

Returns:

  • amount: cumulative GNS principal deposited into the tier, in base units.
  • err: non-nil when the project or tier cannot be found.

Params

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/launchpad.GetProjectTierTotalDepositAmount(,)"

Result