launchpad_init.gno
CreateProject
Creates a new launchpad project (only callable by the admin).
Parameters
Name | Type | Description |
---|---|---|
| string | The name of a project. |
| string | The token path to distribute as reward. |
| std.Address | The address of the project's to receive reward. |
| uint64 | The amount of token to distribute as reward. |
| string | A list of token paths to use as a condition when depositing (It's optional, and for multiple tokens, use |
| string | A list of tokens' amount to use as condition when depositing (It's optional, and for multiple tokens, use |
| uint64 | The distribution ratio of the 30 days pool. |
| uint64 | The distribution ratio of the 60 days pool. |
| uint64 | The distribution ratio of the 180 days pool. |
| uint64 | The start time of the project. |
Return Values
Name | Type | Description |
---|---|---|
proposalId | uint64 | The ID of the created project. |
TransferLeftFromProjectByAdmin
Transfers the remaining amount from the ended project to the recipient
Parameters
Name | Type | Description |
---|---|---|
| string | The ID of the ended project. |
| std.Address | The recipient address to receive the remaining tokens. |
Return Values
Name | Type | Description |
---|---|---|
| uint64 | The amount of transfered tokens. |
Last updated