From 9877794d1cd4c9e0a8479f44f0be1e571990814d Mon Sep 17 00:00:00 2001 From: samlior Date: Sat, 21 Feb 2026 19:03:00 +0800 Subject: [PATCH] fix: flas buy/sell --- pkg/shreder/program_flas.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/shreder/program_flas.go b/pkg/shreder/program_flas.go index 38fbac9..9f5a44f 100644 --- a/pkg/shreder/program_flas.go +++ b/pkg/shreder/program_flas.go @@ -140,11 +140,11 @@ func parseFlasAmmBuy(tx VersionedTransaction, instructionIndex int) (*TxSignal, func parseFlasSell(tx VersionedTransaction, instructionIndex int) (*TxSignal, error) { instruction := tx.Instructions[instructionIndex] - if len(instruction.Accounts) < 9 { + if len(instruction.Accounts) < 11 { return nil, fmt.Errorf("accounts too short") } - mint, err := tx.GetAccount(int(instruction.Accounts[8])) + mint, err := tx.GetAccount(int(instruction.Accounts[10])) if err != nil { return nil, err } @@ -178,15 +178,15 @@ func parseFlasSell(tx VersionedTransaction, instructionIndex int) (*TxSignal, er func parseFlasBuy(tx VersionedTransaction, instructionIndex int) (*TxSignal, error) { instruction := tx.Instructions[instructionIndex] - if len(instruction.Accounts) < 9 { + if len(instruction.Accounts) < 11 { return nil, fmt.Errorf("accounts too short") } - mint, err := tx.GetAccount(int(instruction.Accounts[8])) + mint, err := tx.GetAccount(int(instruction.Accounts[10])) if err != nil { return nil, err } - user, err := tx.GetAccount(int(instruction.Accounts[0])) + user, err := tx.GetAccount(int(instruction.Accounts[1])) if err != nil { return nil, err }