Launchpad Module
A launchpad module enables the creation of token launch platforms (IDOs – Initial DEX Offerings or similar). This is useful for deploying new tokens or projects and conducting a crowdraise. Key features of Nyvo’s launchpad module include:
Token Sale Contract
Nyvo will set up a program that manages the sale of a new or existing token. Typically, the project launching a token will deposit a supply of that token into the program’s custody. Participants can then contribute SOL or another accepted currency to buy a portion of those tokens.
Bonding Mechanism
n the prompt example above, the user requested a bonding mechanism. This suggests Nyvo’s launchpad supports pricing models beyond a fixed price – e.g., a bonding curve where the token price increases as more are sold. The program could implement a mathematical curve (like linear or exponential price increase) or tiers of pricing. All such calculations (price per token based on current sold amount) are done on-chain in the program, guaranteeing transparency.
Phases and Vesting
The module may allow configuration of sale phases (whitelist, public sale) and enforce timing (using Solana timestamps or slot numbers). It might also support vesting schedules for token distribution (e.g., buyers get their tokens gradually to prevent dumps). Nyvo’s UI would show countdowns for stages and status of the sale (percent sold, current price if bonding curve, etc.).
User Participation
From the front-end perspective, users see a launchpad page with project details and a form to contribute (buy tokens). When they participate, the front-end calls an instruction like buyTokens(amount)
on the launchpad program. The program will transfer the user’s payment (SOL) into escrow and mark the user’s allocation. Later, when claiming is open, a claim
instruction would allow users to receive the tokens they purchased (or the program may dispense them immediately if no vesting).
Post-Launch
After the sale, there might be functionality for the project owner to withdraw raised funds (e.g., SOL) from the program account. Nyvo ensures only authorized accounts (like the launchpad initializer) can perform admin actions such as ending the sale or retrieving funds. As a developer, you can specify parameters like total token supply for sale, start/end times, initial price or curve parameters, and accepted payment token.
Security Considerations
Nyvo’s module will have built-in checks to prevent common issues (for example, preventing integer overflow in price calculation, enforcing that no more tokens can be sold than deposited, etc.). This saves you from needing to write and audit these complex token economics rules from scratch.
Last updated