@metamask-previews/perps-controller 12.2.0-preview-a81bf03 → 12.2.0-preview-bbf9454b2

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.
@@ -3326,16 +3326,14 @@ class HyperLiquidProvider {
3326
3326
  hip3Markets: combinedUniverse.length -
3327
3327
  (latestDexResults[0]?.meta?.universe?.length ?? 0),
3328
3328
  });
3329
- // Keep this diagnostic bounded. Logging every price stalls React Native
3330
- // DevTools and other CDP clients when thousands of spot keys are present.
3331
- const allMidEntries = Object.entries(combinedAllMids);
3332
- const hip3Entries = allMidEntries.filter(([key]) => key.includes(':'));
3329
+ // Debug: Log combinedAllMids to diagnose price lookup issues
3330
+ const hip3Keys = Object.keys(combinedAllMids).filter((key) => key.includes(':'));
3333
3331
  __classPrivateFieldGet(this, _HyperLiquidProvider_deps, "f").debugLogger.log('Combined allMids price data:', {
3334
- totalKeys: allMidEntries.length,
3335
- hip3Keys: hip3Entries.length,
3336
- keySample: allMidEntries.slice(0, 5).map(([key]) => key),
3337
- hip3KeySample: hip3Entries.slice(0, 5).map(([key]) => key),
3338
- samplePrices: Object.fromEntries(allMidEntries.slice(0, 5)),
3332
+ totalKeys: Object.keys(combinedAllMids).length,
3333
+ allKeys: Object.keys(combinedAllMids),
3334
+ hip3Keys,
3335
+ hip3Prices: Object.fromEntries(hip3Keys.map((key) => [key, combinedAllMids[key]])),
3336
+ samplePrices: Object.fromEntries(Object.entries(combinedAllMids).slice(0, 5)),
3339
3337
  });
3340
3338
  // Transform to UI-friendly format using standalone utility
3341
3339
  const transformedMarketData = (0, marketDataTransform_js_1.transformMarketData)({