Add MetaOra DLMM StartBinId and EndBinId
This commit is contained in:
@@ -253,6 +253,8 @@ func metaoradlmmSwapParser(tx *Tx, instruction Instruction, innerInstructions In
|
|||||||
UserBaseBalance: userBase,
|
UserBaseBalance: userBase,
|
||||||
UserQuoteBalance: userQuote,
|
UserQuoteBalance: userQuote,
|
||||||
EntryContract: entryContract,
|
EntryContract: entryContract,
|
||||||
|
StartBinId: swapEvent.StartBinId,
|
||||||
|
EndBinId: swapEvent.EndBinId,
|
||||||
}
|
}
|
||||||
|
|
||||||
return []Swap{swap}, offset, nil
|
return []Swap{swap}, offset, nil
|
||||||
|
|||||||
4
tx.go
4
tx.go
@@ -33,6 +33,10 @@ type Swap struct {
|
|||||||
UserBaseBalance decimal.Decimal
|
UserBaseBalance decimal.Decimal
|
||||||
UserQuoteBalance decimal.Decimal
|
UserQuoteBalance decimal.Decimal
|
||||||
EntryContract solana.PublicKey
|
EntryContract solana.PublicKey
|
||||||
|
|
||||||
|
//For meteora dlmm
|
||||||
|
StartBinId int32
|
||||||
|
EndBinId int32
|
||||||
}
|
}
|
||||||
|
|
||||||
type platformInfo struct {
|
type platformInfo struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user