timelock-sdk 0.0.134 → 0.0.135

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/dist/client.cjs CHANGED
@@ -549,9 +549,8 @@ const useExerciseOption = (marketAddr) => {
549
549
  //#region src/hooks/options/useMarketVolume.ts
550
550
  const useMarketVolume = (marketAddr) => {
551
551
  const { graphqlClient } = useTimelockConfig();
552
- const { timelockLens } = useLens();
553
552
  const { data } = (0, __tanstack_react_query.useQuery)({
554
- queryKey: ["marketData", (marketAddr === null || marketAddr === void 0 ? void 0 : marketAddr.toLowerCase()) || "--"],
553
+ queryKey: ["marketVolume", (marketAddr === null || marketAddr === void 0 ? void 0 : marketAddr.toLowerCase()) || "--"],
555
554
  queryFn: async () => {
556
555
  const result = await graphqlClient.GetMarketVolume({ marketAddr: marketAddr.toLowerCase() });
557
556
  return {
@@ -564,18 +563,7 @@ const useMarketVolume = (marketAddr) => {
564
563
  },
565
564
  enabled: !!marketAddr && !!graphqlClient
566
565
  });
567
- const { data: fallback } = (0, __tanstack_react_query.useQuery)({
568
- queryKey: ["marketData", marketAddr || "--"],
569
- queryFn: async () => {
570
- if (!marketAddr || !timelockLens) return void 0;
571
- return {
572
- ...await timelockLens.read.getMarketData([marketAddr]),
573
- tradersCount: void 0
574
- };
575
- },
576
- enabled: !!marketAddr && !!timelockLens
577
- });
578
- return data || fallback || {};
566
+ return data || {};
579
567
  };
580
568
 
581
569
  //#endregion