Cleanup: remove dead code after P3 refactor

This commit is contained in:
jackyu66git
2026-05-03 18:13:11 +08:00
parent beb3611778
commit 931855e1f5
2 changed files with 3 additions and 26 deletions
+2 -25
View File
@@ -4,28 +4,16 @@ import (
"sort"
)
// Exchange names
// Exchange names — only Bitget and HyperLiquid are trading exchanges
const (
ExBinance = "Binance"
ExHyperLiquid = "HyperLiquid"
ExBitget = "Bitget"
ExDydx = "dYdX"
)
// Fee rates (%) — taker fees per exchange
var feeRates = map[string]float64{
ExBinance: 0.040,
ExHyperLiquid: 0.035,
ExBitget: 0.040, // standard taker
ExDydx: 0.050, // dYdX v4 standard taker
}
// Maker fee rates (%) — for limit orders
// Maker fee rates (%) — for limit orders on trading exchanges
var makerFees = map[string]float64{
ExBinance: 0.020, // standard maker (USDT pairs)
ExHyperLiquid: 0.015,
ExBitget: 0.020, // standard maker
ExDydx: 0.020,
}
// TickerCoins defines all coins we monitor.
@@ -105,14 +93,3 @@ func ScanBGHL(store *PriceStore) []*ArbOpportunity {
return results
}
// ScanArbWithFees checks all coins — REDIRECTED to ScanBGHL for performance (P3-1).
// Kept for backward compatibility; only BG↔HL is relevant for trading.
func ScanArbWithFees(store *PriceStore, fees map[string]float64) []*ArbOpportunity {
return ScanBGHL(store)
}
// ScanArb checks all coins using taker fees.
func ScanArb(store *PriceStore) []*ArbOpportunity {
return ScanArbWithFees(store, feeRates)
}