IsCashbackCoin
This commit is contained in:
@@ -50,7 +50,8 @@ type Tx struct {
|
||||
AfterSOLBalance decimal.Decimal `gorm:"column:after_sol_balance;type:numeric" json:"after_sol_balance"`
|
||||
EntryContract string `gorm:"column:tx_entry_contract;type:entry_contract;default:'none'" json:"tx_entry_contract"`
|
||||
|
||||
Mayhem bool
|
||||
Mayhem bool
|
||||
Cashback bool `json:"is_cashback_coin"`
|
||||
}
|
||||
|
||||
func (tx *Tx) GetTxHash() string {
|
||||
@@ -121,6 +122,7 @@ func FromTx(tx *parser.Tx) []*Tx {
|
||||
|
||||
EntryContract: s.CheckEntryContract(),
|
||||
Mayhem: s.Mayhem,
|
||||
Cashback: s.Cashback,
|
||||
}
|
||||
} else if s.Program == "PumpAMM" {
|
||||
if s.BaseMint.Equals(solana.WrappedSol) {
|
||||
@@ -175,6 +177,7 @@ func FromTx(tx *parser.Tx) []*Tx {
|
||||
|
||||
EntryContract: s.CheckEntryContract(),
|
||||
Mayhem: s.Mayhem,
|
||||
Cashback: s.Cashback,
|
||||
}
|
||||
} else {
|
||||
newTx = &Tx{
|
||||
@@ -219,6 +222,7 @@ func FromTx(tx *parser.Tx) []*Tx {
|
||||
|
||||
EntryContract: s.CheckEntryContract(),
|
||||
Mayhem: s.Mayhem,
|
||||
Cashback: s.Cashback,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user