← Back to index

Program: factory-program

Purpose

This program implements an ICO (Initial Coin Offering) launchpad. It allows a project authority to create a new token where the price is determined by a linear bonding curve. It is the mint authority for the token it creates and is responsible for processing purchases and CPI-calling the affiliate program to handle commissions.

State Accounts

1. LaunchState

Instructions

1. create_launch

2. buy_tokens

3. withdraw_sol

Errors