Program ID: torXFavtJnaJzW7fz2NVrg9f1j824GitYi69zhmJQBK
Torix.fun is a Solana-based Launch Wars protocol. Creators launch memecoins on bonding curves and compete for trading volume within timed rounds. The top-N curves by cumulative volume win SOL rewards from a round prize pool.
- Rounds last a fixed duration (24 hours in v1).
- Creators launch tokens via permissionless
launch. - Traders buy and sell tokens via
buy_exact/sell_exact. - Volume (buy + sell SOL) is tracked per curve.
- Winners — the top
winners_per_roundcurves byvolume_sol— receive rewards from theRoundVaultwhen the round ends.
| Instruction | Caller | Description |
|---|---|---|
launch |
Anyone | Create a new bonding curve token |
buy_exact |
Anyone | Buy tokens with SOL |
sell_exact |
Anyone | Sell tokens for SOL |
start_round |
Anyone | Start a new timed round and vault |
end_round |
end_round_authority |
Distribute vault prizes to top-volume creators |
initialize_global |
Program upgrade authority | Initialize GlobalConfig |
update_global |
protocol_authority |
Update protocol parameters |
start_migration |
migration_authority |
(v2 — not yet implemented) |
migrate_liquidity |
migration_authority |
(v2 — not yet implemented) |
Fees are charged only on buy_exact and sell_exact:
fee_bps— total fee in basis points (e.g. 100 = 1%).round_fee_bps— portion offee_bpsthat goes to the current round'sRoundVault.- The remainder (
fee_bps - round_fee_bps) goes tofee_recipientas the protocol fee.
Example: fee_bps = 100, round_fee_bps = 50.
- Total fee = 1% of trade.
- Round fee = 0.5% →
RoundVault. - Protocol fee = 0.5% →
fee_recipient.
| Authority | Purpose |
|---|---|
protocol_authority |
Update GlobalConfig via update_global |
end_round_authority |
End rounds and distribute prizes via end_round |
migration_authority |
Execute migration instructions (v2) |
All other instructions are permissionless.
ARCHITECTURE.md— State accounts, PDAs, math, and data flowsSECURITY.md— Trust model and security considerationsEVENTS.md— On-chain event referenceERRORS.md— Error code reference
- Anchor 1.0.2
- Solana (BPF/SBF target)
- spl-token-2022 (Token-2022 program with metadata extensions)
- Rust 2021 edition