chore: add cu price

This commit is contained in:
2026-02-03 17:36:59 +08:00
parent a0e46ec83e
commit 77c8c0aad3
3 changed files with 31 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ type TxSignal struct {
IsProcessed bool `json:"is_processed"`
IsToken2022 bool `json:"is_token2022"`
IsMayhemMode bool `json:"is_mayhem_mode"`
TxFee decimal.Decimal `json:"tx_fee"`
CUPrice decimal.Decimal `json:"cu_price"`
ExactSOL bool `json:"exact_in"`
@@ -55,6 +55,7 @@ type TxSignal struct {
MaxPriceImpactBps uint16 `json:"max_price_impact_bps"`
// parsed values
CUPriceUint64 uint64 `json:"-"`
Token0AmountUint64 uint64 `json:"-"`
Token1AmountUint64 uint64 `json:"-"`