Solana Programs
Three custom programs power The Candidate Protocol on Solana.
What Is a Program?
A Solana program (smart contract) is immutable code deployed on-chain that executes deterministic logic. Our custom programs handle sales, revenue routing, and marketplace operations. We intentionally use third-party programs for critical infrastructure like vesting (Streamflow), buybacks (Jupiter DCA), and governance (Squads).
Important: Vesting Timing
Vesting begins when a contract is purchased — not at the Token Generation Event (TGE). If you buy a contract 6 months after launch, your 5-year vesting clock starts at purchase. You cannot withdraw tokens that vested before you owned the contract.
FoundersEraProgram
Handles Phase 1 sales, revenue routing, and the affiliate system:
- Contract purchases with KYC verification (via SAS/Sumsub)
- 50/40/10 revenue split (CCV/Company/Affiliate)
- Streamflow CPI for vesting stream creation (starts at purchase time)
- Affiliate registration, balance tracking, and withdrawals
- Tax verification and forfeiture processing
Phase2EngineProgram
Reserved for Phase 2 (activates after Phase 1 sells out):
- TWAP oracle integration (Pyth + Switchboard)
- 50% discount pricing logic vs 7-day TWAP
- CCV reserve verification (minimum 10M CANDI)
- Affiliate commission support (same 10% structure as Phase 1)
- Vesting also starts at purchase time
MarketplaceProgram
Powers secondary trading of vesting contracts:
- List contracts (fixed price or make-offer)
- Submit and accept offers
- 3% transaction fee (50/50 CCV/Company split)
- Private transfers with optional pricing
- KYC required for all participants
- No affiliate commission on secondary sales
What Is NOT a Custom Program?
Some key protocol components use third-party infrastructure rather than custom code:
- CCV: Squads-native SPL accounts + Jupiter DCA for automated buybacks — no custom CCV program
- Vesting: Streamflow Finance handles all vesting logic, token custody, and beneficiary transfers
- Governance: Squads Protocol provides 2-of-3 multisig with timelock
- KYC: Solana Attestation Service (SAS) with Sumsub integration