Function open_token_account_check

Source
pub fn open_token_account_check(
    swap_configs: &Vec<SwapConfig>,
    instructions: &mut Vec<Instruction>,
    compute_unit_budget: &mut u32,
)
Expand description

Add instructions to open token accounts for swap outputs if needed. Iterates through swap configs and adds create-associated-token-account idempotent (not failing if already open) instructions for any swaps where open_token_account is true. Updates the compute unit budget accordingly.