pub fn get_pf_a_amount_out_no_price_impact(
b_amount_in: u64,
swap_fee_lamports: u64,
a_pool_reserves: u64,
b_pool_reserves: u64,
) -> u64Expand description
Calculate token A amount out for Pumpfun bonding curve (without price impact) Calculates the amount of base token (token A) received for a given amount of quote token (SOL) input. Does not account for price impact. Note: Pumpfun bonding curve supports exact amount in/out instructions. This all can go in the dumpster because pf bonding curve supports buy exact in and sell is exact in.