SwapRouterBaseIn in Raydium - Amm - v3 - Instructions - Swap - Router - Base - in - Rust
SwapRouterBaseIn in Raydium - Amm - v3 - Instructions - Swap - Router - Base - in - Rust
Struct raydium_amm_v3::instructions::swap_router_base_in::
SwapRouterBaseIn
Fields
payer: Signer<'info>
The user performing the swap
input_token_account: InterfaceAccount<'info, TokenAccount>
The token account that pays input tokens for the swap
input_token_mint: InterfaceAccount<'info, Mint>
The mint of input token
other_pool_state: AccountLoader<'info, PoolState>
token_program: Program<'info, Token>
SPL program for token transfers
token_program_2022: Program<'info, Token2022>
SPL program 2022 for token transfers
memo_program: UncheckedAccount<'info>
CHECK:
system_program: Program<'info, System>
Trait Implementations
fn try_accounts(
__program_id: &Pubkey,
__accounts: &mut &'info [AccountInfo<'info>],
__ix_data: &[u8],
__bumps: &mut SwapRouterBaseInBumps,
__reallocs: &mut BTreeSet<Pubkey>
) -> Result<Self>
Returns the validated accounts struct. What constitutes “valid” is program dependent. However,
users of these types should never have to worry about account substitution attacks. For example, if
a program expects a Mint account from the SPL token program in a particular field, then it
should be impossible for this method to return Ok if any other account type is given–from the SPL
token program or elsewhere. Read more
Blanket Implementations