fix: restore canonical token lookup for market caches
Build Docker Image / build (amd64) (push) Successful in 1m25s

This commit is contained in:
2026-06-08 07:17:14 +07:00
parent 3b726311f5
commit e173fd7799
5 changed files with 150 additions and 23 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ func (ms *MarketData) refreshSpotPairCache() error {
continue
}
spotPairs[s.Symbol] = true
token := parseTokenFromSymbolByQuotePriority(s.Symbol)
token := tokenKeyFromSymbol(s.Symbol)
if token == "" {
continue
}
@@ -36,7 +36,7 @@ func (ms *MarketData) refreshSpotPairCache() error {
spotToken2Symbol := make(map[string]string, len(spotTokenCandidates))
for token, candidates := range spotTokenCandidates {
spotToken2Symbol[token] = selectCanonicalSymbolByQuotePriority(token, candidates)
spotToken2Symbol[token] = selectCanonicalSpotSymbol(token, candidates)
}
ms.pairCacheMutex.Lock()