@pear-protocol/hyperliquid-sdk 0.1.21 → 0.1.22

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -471,11 +471,9 @@ const applyOiCapsToMetadataMap = (tokenMetadata, finalAtOICaps) => {
471
471
  });
472
472
  return next;
473
473
  };
474
- const shouldSkipToken = (asset, oiCapSet) => {
474
+ const shouldSkipToken = (asset) => {
475
475
  if (asset.isDelisted)
476
476
  return true;
477
- if (isAtOiCaps(asset.name, oiCapSet))
478
- return true;
479
477
  return false;
480
478
  };
481
479
  const buildTokenMetadataMap = ({ perpMetasByDex, assetContextsByDex, allMids, activeAssetData, finalAtOICaps, }) => {
@@ -487,7 +485,7 @@ const buildTokenMetadataMap = ({ perpMetasByDex, assetContextsByDex, allMids, ac
487
485
  // Iterate through all DEXes and their assets
488
486
  for (const [, assets] of perpMetasByDex) {
489
487
  for (const asset of assets) {
490
- if (shouldSkipToken(asset, oiCapSet)) {
488
+ if (shouldSkipToken(asset)) {
491
489
  continue;
492
490
  }
493
491
  const symbol = asset.name;
@@ -511,7 +509,7 @@ const updateTokenMetadataForSymbols = (prev, symbols, { perpMetasByDex, assetCon
511
509
  if (foundAsset)
512
510
  break;
513
511
  }
514
- if (foundAsset && shouldSkipToken(foundAsset, oiCapSet)) {
512
+ if (foundAsset && shouldSkipToken(foundAsset)) {
515
513
  delete next[symbol];
516
514
  return;
517
515
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/hyperliquid-sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "React SDK for Pear Protocol Hyperliquid API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",