launchpad_project.gno
CreateProject
func CreateProject(
cur realm,
name string,
tokenPath string,
recipient address,
depositAmount int64,
conditionTokens string,
conditionAmounts string,
tier30Ratio int64,
tier90Ratio int64,
tier180Ratio int64,
startTime int64
) stringCreateProject creates a new launchpad project (only callable by the admin).
Parameters
cur
realm
Pass cross as argument.
name
string
The name of a project.
tokenPath
string
The token path to distribute as reward.
recipient
address
The address of the project's to receive reward.
depositAmount
int64
The amount of token to distribute as reward.
conditionTokens
string
A list of token paths to use as a condition when depositing (It's optional, and for multiple tokens, use *PAD* as separator).
conditionAmounts
string
A list of tokens' amount to use as condition when depositing (It's optional, and for multiple tokens, use *PAD* as separator).
tier30Ratio
int64
The distribution ratio of the 30 days pool.
tier90Ratio
int64
The distribution ratio of the 90 days pool.
tier180Ratio
int64
The distribution ratio of the 180 days pool.
startTime
int64
The start time of the project.
Return Values
projectId
string
The ID of the created project.
TransferLeftFromProjectByAdmin
TransferLeftFromProjectByAdmin transfers the remaining amount from the ended project to the recipient.
Parameters
cur
realm
Pass cross as argument.
projectID
string
The ID of the ended project.
recipient
address
The recipient address to receive the remaining tokens.
Return Values
amount
int64
The amount of transferred tokens.
Last updated