Expand description
Off-chain instruction builders. Fixed account order mirrors on-chain process_* comments.
Functions§
- associated_
usdc_ ata - deposit
- User deposits
amountµUSDC into the treasury. Server listens for theDepositedevent to credit the user’s off-chain balance. - fee_
collector_ usdc_ ata_ with_ token_ program - initialize
- One-time treasury initialization. Creates the Treasury PDA and its USDC ATA.
Genesis price is seeded by the first
AdminInstantSettlementcall.payermust beADMIN_ADDRESS. - payout
- Pay
amountµUSDC from the treasury torecipient_ata. Used for winner payouts, jackpot distributions, and withdrawals. - program_
id - route_
fees - Route
amountµUSDC of claimed DBC / DAMM v2 fees into the treasury. - route_
fees_ default_ executor - Convenience:
route_feessigned by the canonicalEXECUTOR_ADDRESS. - treasury_
usdc_ ata - treasury_
usdc_ ata_ with_ token_ program - usdc_
ata