chore: add parse swqos logic

This commit is contained in:
2026-02-05 14:32:24 +08:00
parent 77c8c0aad3
commit db9e2b33cb
5 changed files with 300 additions and 6 deletions

View File

@@ -45,6 +45,8 @@ type TxSignal struct {
IsToken2022 bool `json:"is_token2022"`
IsMayhemMode bool `json:"is_mayhem_mode"`
CUPrice decimal.Decimal `json:"cu_price"`
SWQoSAgent string `json:"swqos_agent"`
SWQoSTips decimal.Decimal `json:"swqos_tips"`
ExactSOL bool `json:"exact_in"`
@@ -55,7 +57,6 @@ type TxSignal struct {
MaxPriceImpactBps uint16 `json:"max_price_impact_bps"`
// parsed values
CUPriceUint64 uint64 `json:"-"`
Token0AmountUint64 uint64 `json:"-"`
Token1AmountUint64 uint64 `json:"-"`