Search Apps Documentation Source Content File Folder Download Copy Actions Download

/r/gnoswap/launchpad/v1

Directory ยท 20 Files
README.md Open

Launchpad

Token distribution platform for early-stage projects.

Overview

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.

Configuration

  • Pool Tiers: 30, 90, 180 days
  • Minimum Start Delay: 3 days
  • Minimum Deposit Amount: 1,000,000 GNS (must be a multiple of 1,000,000)
  • Auto-delegation: Staked GNS converts to xGNS
  • Tier Allocation: Customizable per project

Core Features

  • GNS staking for project token rewards
  • Multiple tier durations with different rewards
  • Automatic xGNS delegation for governance
  • Pro-rata distribution based on stake size
  • Conditional participation requirements

Key Functions

CreateProject

Creates new token distribution project.

DepositGns

Stakes GNS to earn project tokens.

CollectRewardByDepositId

Claims earned project tokens.

CollectDepositGns

Withdraws GNS after lock period.

TransferLeftFromProjectByAdmin

Refunds unclaimed rewards to project.

Usage

 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)

Security

  • GNS locked until tier period ends
  • Automatic governance delegation
  • Conditional requirements prevent abuse