Docs / Protocol

The program

Every instruction of the FomoPad program.

Instructions

InstructionWhoWhat
initializeupgrade authorityCreates the config with the treasury, star share and fee share, and checks the launch config is one the pad can run.
register_coin(star, star_bps)the launchRecords a coin on its star, in the pool’s own launch transaction.
adopt_pool(star, creator)adminRegisters a pool on the pad’s config that no launch transaction registered.
harvestanyoneClaims curve fees and pays the star and the pad.
harvest_migratedanyoneClaims pool fees after graduation and pays the star and the pad.
claim_protocolanyoneSends the pad’s share to the treasury.
set_star_share / set_treasury / set_launch_config / set_pausedadminSettings. A new launch config must pass the same checks as at initialize.
transfer_admin / accept_adminadmin, then the new oneTwo-step handover.

The launch config

validate_launch_config refuses any DBC config whose fees are not in SOL, not all the fee claimer's, that gives the pool's creator a share (the coin account cannot claim), that charges a migration or creation fee, or whose graduation is not a locked DAMM v2 position. A config that passed cannot send a coin's fees anywhere the harvest does not reach.