1 2 3 4 5 6 7 8 9 10 11 12
use anchor_lang::prelude::*;
pub const DEFAULT_AMOUNT_IN_CACHED: u64 = u64::MAX;
#[account]
#[derive(Default)]
pub struct SwapRouterState {
pub bump: u8,
pub core: Pubkey,
/// Cache for exact output swaps
pub amount_in_cached: u64,
}