Add MetaOra DLMM StartBinId and EndBinId

This commit is contained in:
bijianing97
2026-01-07 18:21:27 +08:00
parent 6bc84ce126
commit 16b7461ac7
2 changed files with 6 additions and 0 deletions

View File

@@ -253,6 +253,8 @@ func metaoradlmmSwapParser(tx *Tx, instruction Instruction, innerInstructions In
UserBaseBalance: userBase,
UserQuoteBalance: userQuote,
EntryContract: entryContract,
StartBinId: swapEvent.StartBinId,
EndBinId: swapEvent.EndBinId,
}
return []Swap{swap}, offset, nil

4
tx.go
View File

@@ -33,6 +33,10 @@ type Swap struct {
UserBaseBalance decimal.Decimal
UserQuoteBalance decimal.Decimal
EntryContract solana.PublicKey
//For meteora dlmm
StartBinId int32
EndBinId int32
}
type platformInfo struct {