Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9877794d1c |
@@ -140,11 +140,11 @@ func parseFlasAmmBuy(tx VersionedTransaction, instructionIndex int) (*TxSignal,
|
|||||||
|
|
||||||
func parseFlasSell(tx VersionedTransaction, instructionIndex int) (*TxSignal, error) {
|
func parseFlasSell(tx VersionedTransaction, instructionIndex int) (*TxSignal, error) {
|
||||||
instruction := tx.Instructions[instructionIndex]
|
instruction := tx.Instructions[instructionIndex]
|
||||||
if len(instruction.Accounts) < 9 {
|
if len(instruction.Accounts) < 11 {
|
||||||
return nil, fmt.Errorf("accounts too short")
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -178,15 +178,15 @@ func parseFlasSell(tx VersionedTransaction, instructionIndex int) (*TxSignal, er
|
|||||||
|
|
||||||
func parseFlasBuy(tx VersionedTransaction, instructionIndex int) (*TxSignal, error) {
|
func parseFlasBuy(tx VersionedTransaction, instructionIndex int) (*TxSignal, error) {
|
||||||
instruction := tx.Instructions[instructionIndex]
|
instruction := tx.Instructions[instructionIndex]
|
||||||
if len(instruction.Accounts) < 9 {
|
if len(instruction.Accounts) < 11 {
|
||||||
return nil, fmt.Errorf("accounts too short")
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
user, err := tx.GetAccount(int(instruction.Accounts[0]))
|
user, err := tx.GetAccount(int(instruction.Accounts[1]))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user