fix: restore canonical token lookup for market caches
Build Docker Image / build (amd64) (push) Successful in 1m25s
Build Docker Image / build (amd64) (push) Successful in 1m25s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user