diff --git a/pump.go b/pump.go index 6bbf1f0..dfb0cba 100644 --- a/pump.go +++ b/pump.go @@ -79,6 +79,7 @@ type PumpCreateEvent struct { TokenTotalSupply uint64 TokenProgram solana.PublicKey IsMayhemMode bool + IsCashbackEnabled bool } func CreateParser(tx *Tx, instr Instruction, innerInstructions InnerInstructions, offset [2]uint) ([]Swap, [2]uint, error) { @@ -148,6 +149,7 @@ func CreateParser(tx *Tx, instr Instruction, innerInstructions InnerInstructions BaseReserve: decimal.NewFromUint64(createEvent.RealTokenReserves), QuoteReserve: decimal.Zero, Mayhem: createEvent.IsMayhemMode, + Cashback: createEvent.IsCashbackEnabled, UserBaseBalance: userBase, UserQuoteBalance: decimal.NewFromUint64(userQuote), EntryContract: entryContract, diff --git a/tx.go b/tx.go index f07c8cb..ca5d8e9 100644 --- a/tx.go +++ b/tx.go @@ -31,6 +31,7 @@ type Swap struct { BaseReserve decimal.Decimal QuoteReserve decimal.Decimal Mayhem bool + Cashback bool UserBaseBalance decimal.Decimal UserQuoteBalance decimal.Decimal