@scallop-io/sui-scallop-sdk 2.3.4 → 2.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -74,7 +74,7 @@ export const queryKeys = {
74
74
  },
75
75
  },
76
76
  oracle: {
77
- getPythLatestPriceFeeds: (priceIds: string[], endpoint: string) => [
77
+ getPythLatestPriceFeeds: (endpoint?: string, priceIds?: string[]) => [
78
78
  'oracle',
79
79
  'getPythPriceIds',
80
80
  priceIds,
@@ -547,8 +547,8 @@ class ScallopUtils implements ScallopUtilsInterface {
547
547
  try {
548
548
  const feeds = await this.queryClient.fetchQuery({
549
549
  queryKey: queryKeys.oracle.getPythLatestPriceFeeds(
550
- priceIds,
551
- endpoint
550
+ endpoint,
551
+ priceIds
552
552
  ),
553
553
  queryFn: async () => {
554
554
  return await pythConnection.getLatestPriceFeeds(priceIds);