const GOV_XGNS_PATH, GNS_TOKEN_KEY
contract paths
Token distribution platform for early-stage projects.
Launchpad enables new projects to distribute tokens to GNS stakers with tiered lock periods and pro-rata reward distribution. For more details about the concept, check out docs.
CreateProjectCreates new token distribution project.
DepositGnsStakes GNS to earn project tokens.
CollectRewardByDepositIdClaims earned project tokens.
CollectDepositGnsWithdraws GNS after lock period.
TransferLeftFromProjectByAdminRefunds unclaimed rewards to project.
1// Create project
2projectId := CreateProject(
3 name, tokenPath, recipient, amount,
4 conditionTokens, conditionAmounts,
5 tier30Ratio, tier90Ratio, tier180Ratio,
6 startTime
7)
8
9// Stake GNS
10depositId := DepositGns(projectTierId, amount, referrer)
11
12// Collect rewards
13CollectRewardByDepositId(depositId)
14
15// Withdraw after lock period
16CollectDepositGns(depositId)