Skip to content

pumpswap consts are not absolute #106

Description

@shayka211

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions