@gearbox-protocol/sdk 12.9.8 → 12.9.9

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.
@@ -35,7 +35,7 @@ async function fetchPythPayloads(options) {
35
35
  customFetch = fetch,
36
36
  returnPrices
37
37
  } = options;
38
- const ids = Array.from(new Set(dataFeedsIds));
38
+ const ids = Array.from(new Set(dataFeedsIds)).sort();
39
39
  if (ids.length === 0) {
40
40
  return [];
41
41
  }
@@ -46,7 +46,7 @@ async function fetchPythPayloads(options) {
46
46
  if (ignoreMissingFeeds) {
47
47
  url.searchParams.append("ignore_invalid_price_ids", "true");
48
48
  }
49
- for (const id of dataFeedsIds) {
49
+ for (const id of ids) {
50
50
  url.searchParams.append("ids[]", id);
51
51
  }
52
52
  const resp = await (0, import_utils.retry)(
@@ -16,7 +16,7 @@ async function fetchPythPayloads(options) {
16
16
  customFetch = fetch,
17
17
  returnPrices
18
18
  } = options;
19
- const ids = Array.from(new Set(dataFeedsIds));
19
+ const ids = Array.from(new Set(dataFeedsIds)).sort();
20
20
  if (ids.length === 0) {
21
21
  return [];
22
22
  }
@@ -27,7 +27,7 @@ async function fetchPythPayloads(options) {
27
27
  if (ignoreMissingFeeds) {
28
28
  url.searchParams.append("ignore_invalid_price_ids", "true");
29
29
  }
30
- for (const id of dataFeedsIds) {
30
+ for (const id of ids) {
31
31
  url.searchParams.append("ids[]", id);
32
32
  }
33
33
  const resp = await retry(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "12.9.8",
3
+ "version": "12.9.9",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",