@pear-protocol/hyperliquid-sdk 0.0.66-usdh-3 → 0.0.66-usdh-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -779,8 +779,8 @@ const useHyperliquidNativeWebSocket = ({ address, enabled = true, }) => {
|
|
|
779
779
|
case 'allDexsAssetCtxs':
|
|
780
780
|
{
|
|
781
781
|
const data = response.data;
|
|
782
|
-
// Filter out
|
|
783
|
-
const FILTERED_DEX_PREFIXES = ['
|
|
782
|
+
// Filter out hyna to match perpMetaAssets filtering
|
|
783
|
+
const FILTERED_DEX_PREFIXES = ['hyna'];
|
|
784
784
|
const filtered = (data.ctxs || [])
|
|
785
785
|
.filter(([prefix]) => !FILTERED_DEX_PREFIXES.includes((prefix || '').toLowerCase()))
|
|
786
786
|
.sort((a, b) => {
|
|
@@ -8266,9 +8266,9 @@ const PearHyperliquidProvider = ({ children, apiBaseUrl = 'https://hl-ui.pearpro
|
|
|
8266
8266
|
.then((res) => {
|
|
8267
8267
|
const assetToMarkets = new Map();
|
|
8268
8268
|
const marketPrefixes = new Map();
|
|
8269
|
-
const FILTERED_PREFIXES = ['
|
|
8269
|
+
const FILTERED_PREFIXES = ['hyna'];
|
|
8270
8270
|
// Group assets by market prefix to match WebSocket flattening order
|
|
8271
|
-
// WebSocket sends in order: "", "flx", "hyna", "vntl", "xyz"
|
|
8271
|
+
// WebSocket sends in order: "", "flx", "hyna", "vntl", "xyz" (we filter out hyna)
|
|
8272
8272
|
const assetsByPrefix = new Map();
|
|
8273
8273
|
const allAssetsByPrefix = new Map();
|
|
8274
8274
|
res.data.forEach((item) => {
|