Skip to main content

payout

Function payout 

Source
pub fn payout(
    executor: Pubkey,
    recipient_ata: Pubkey,
    amount: u64,
    series_id: u16,
    period: u64,
    token_program: Pubkey,
    pool: u8,
) -> Instruction
Expand description

Pay amount µUSDC from the treasury to recipient_ata.

pool selects which treasury accounting counter to debit (PAYOUT_POOL_*). Use PAYOUT_POOL_NONE for per-round bet winner payouts.