v3.3.10: fix(#220): correctly detecting usdc pairs for unified perp ws market

This commit is contained in:
tiagosiebler
2023-01-24 11:04:50 +00:00
parent ee90cc07e7
commit 8010b2cebf
3 changed files with 11 additions and 7 deletions

View File

@@ -276,7 +276,10 @@ export function getWsKeyForTopic(
return WS_KEY_MAP.unifiedPerpUSDTPublic;
}
if (upperTopic.indexOf('USDC') !== -1) {
if (
upperTopic.indexOf('USDC') !== -1 ||
upperTopic.indexOf('PERP') !== -1
) {
return WS_KEY_MAP.unifiedPerpUSDCPublic;
}