@pear-protocol/hyperliquid-sdk 0.0.28 → 0.0.29

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7310,14 +7310,14 @@ const useTokenSelectionMetadataStore = create((set) => ({
7310
7310
  const metadata = longTokensMetadata[token.symbol];
7311
7311
  if ((metadata === null || metadata === void 0 ? void 0 : metadata.netFunding) && token.weight > 0) {
7312
7312
  const weightFactor = token.weight / 100;
7313
- totalFunding += metadata.netFunding * weightFactor;
7313
+ totalFunding += -metadata.netFunding * weightFactor;
7314
7314
  }
7315
7315
  });
7316
7316
  shortTokens.forEach((token) => {
7317
7317
  const metadata = shortTokensMetadata[token.symbol];
7318
7318
  if ((metadata === null || metadata === void 0 ? void 0 : metadata.netFunding) && token.weight > 0) {
7319
7319
  const weightFactor = token.weight / 100;
7320
- totalFunding -= metadata.netFunding * weightFactor;
7320
+ totalFunding += metadata.netFunding * weightFactor;
7321
7321
  }
7322
7322
  });
7323
7323
  return totalFunding;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/hyperliquid-sdk",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "React SDK for Pear Protocol Hyperliquid API integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",