In src/utils/calc/pumpswap.rs
You are using:
use crate::instruction::utils::pumpswap::accounts::{
COIN_CREATOR_FEE_BASIS_POINTS, LP_FEE_BASIS_POINTS, PROTOCOL_FEE_BASIS_POINTS,
};
And using them in sell_base_input_internal and other functions. But this consts aint the truth, for example I stumbled across this pool jpqfphDxnEjSAguhGCeTZ74PU5A5ef1FBoV5u3an16b with the following fees fees: lp=20bps protocol=5bps creator=75bps total=100bps
At least I am pretty sure about it.
There is pumpfun site that may be accurate
https://pump.fun/docs/fees
and one can parse the accounts
&accounts::FEE_CONFIG
and do maybe something more accurate
In src/utils/calc/pumpswap.rs
You are using:
use crate::instruction::utils::pumpswap::accounts::{
COIN_CREATOR_FEE_BASIS_POINTS, LP_FEE_BASIS_POINTS, PROTOCOL_FEE_BASIS_POINTS,
};
And using them in sell_base_input_internal and other functions. But this consts aint the truth, for example I stumbled across this pool jpqfphDxnEjSAguhGCeTZ74PU5A5ef1FBoV5u3an16b with the following fees fees: lp=20bps protocol=5bps creator=75bps total=100bps
At least I am pretty sure about it.
There is pumpfun site that may be accurate
https://pump.fun/docs/fees
and one can parse the accounts
&accounts::FEE_CONFIG
and do maybe something more accurate