IsCashbackCoin

This commit is contained in:
cachalots
2026-02-27 02:07:52 +08:00
parent bcd442195c
commit 972ddc7960
4 changed files with 16 additions and 9 deletions

View File

@@ -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,
}
}
}