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 }