fix ignore failed metaora swap
This commit is contained in:
@@ -16,8 +16,8 @@ type metaoraPoolInitializePoolData struct {
|
||||
}
|
||||
|
||||
type metaoraPoolSwapArgs struct {
|
||||
InAmount uint64
|
||||
MinimumOutAmount uint64
|
||||
InAmount uint64
|
||||
MinimumOutAmount uint64
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -855,6 +855,9 @@ func metaoraPoolSwap(tx *Tx, instruction Instruction, innerInstructions InnerIns
|
||||
}
|
||||
}
|
||||
if !baseFound || !quoteFound {
|
||||
if args.InAmount == 0 {
|
||||
return nil, increaseOffset(offset), InstructionIgnoredError
|
||||
}
|
||||
return nil, increaseOffset(offset), fmt.Errorf("failed to find meteora pool event in inner instructions")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user