Skip to main content

deploy

Function deploy 

Source
pub fn deploy(
    signer: Pubkey,
    authority: Pubkey,
    amount: u64,
    round_id: u64,
    squares: [bool; 25],
    referrer: Option<Pubkey>,
    pooled: bool,
) -> Instruction
Expand description

Deploy SOL to prospect on squares (for FOGO sessions or regular wallets with wrapped SOL).

This function includes wrapped SOL ATAs and is used for:

  • FOGO sessions (signer != authority, with wrapped SOL transfers)
  • Regular wallets using wrapped SOL

For automations (bot-executed deploys using native SOL from automation account balance), use deploy_auto instead.

Pass a referrer pubkey for new miners to set up referral. Set pooled to true to join the mining pool (rewards shared proportionally).