Add PumpFun trade filter and create ix_name support

This commit is contained in:
0xfnzero
2026-06-03 01:07:45 +08:00
parent 9e93d2c5d1
commit 590801db7c
6 changed files with 35 additions and 2 deletions
+1
View File
@@ -174,6 +174,7 @@ mod tests {
assert_eq!(st.mint, mint);
assert_eq!(st.global, global);
assert_eq!(st.event_authority, event_authority);
assert_eq!(st.ix_name, "create_v2");
assert!(st.is_mayhem_mode);
assert!(st.is_cashback_enabled);
}
@@ -60,6 +60,7 @@ pub(crate) fn pumpfun_create_token_from_parser(
is_cashback_enabled: c.is_cashback_enabled,
quote_mint: normalize_pumpfun_quote_mint(c.quote_mint),
virtual_quote_reserves: c.virtual_quote_reserves,
ix_name: "create".to_string(),
..Default::default()
}
}
@@ -87,6 +88,7 @@ pub(crate) fn pumpfun_create_token_from_parser_v2(
is_cashback_enabled: c.is_cashback_enabled,
quote_mint: normalize_pumpfun_quote_mint(c.quote_mint),
virtual_quote_reserves: c.virtual_quote_reserves,
ix_name: "create_v2".to_string(),
mint_authority: c.mint_authority,
associated_bonding_curve: c.associated_bonding_curve,
global: c.global,