mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-13 08:58:05 +00:00
feat(pumpfun): parse 17th instruction account (account field)
- Add PumpFunTradeEvent.account: Option<Pubkey> for the 17th instruction account (index 16), labeled as 'Account' on block explorers. - Fill account in parse_buy_instruction, parse_buy_exact_sol_in_instruction, and parse_sell_instruction when accounts.get(16) is present. - Merge account from CPI log event into instruction event when merging. Made-with: Cursor
This commit is contained in:
@@ -31,6 +31,9 @@ pub fn merge(instruction_event: &mut DexEvent, cpi_log_event: DexEvent) {
|
||||
e.cashback_fee_basis_points = cpie.cashback_fee_basis_points;
|
||||
e.cashback = cpie.cashback;
|
||||
e.is_cashback_coin = cpie.is_cashback_coin;
|
||||
if cpie.account.is_some() {
|
||||
e.account = cpie.account;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user