timelock-sdk 0.0.145 → 0.0.146

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
@@ -13,7 +13,6 @@ graphql_tag = require_optionUtils.__toESM(graphql_tag);
13
13
  let viem_actions = require("viem/actions");
14
14
  let wagmi = require("wagmi");
15
15
  let __tanstack_react_query = require("@tanstack/react-query");
16
- require("zod/v4/locales");
17
16
  let zod = require("zod");
18
17
 
19
18
  //#region src/generated/graphql.ts
@@ -589,13 +588,13 @@ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
589
588
  //#endregion
590
589
  //#region src/hooks/options/useExerciseOption.ts
591
590
  const useExerciseOption = (marketAddr) => {
592
- const { vault, poolKey } = useMarketData(marketAddr);
591
+ const { vault, poolManager, poolKey } = useMarketData(marketAddr);
593
592
  const { timelockLens } = useLens();
594
593
  const queryClient = (0, __tanstack_react_query.useQueryClient)();
595
594
  const client = (0, wagmi.useClient)();
596
595
  const { address } = (0, wagmi.useConnection)();
597
596
  const { writeContractAsync } = (0, wagmi.useWriteContract)();
598
- const { sqrtPriceX96 } = useCurrentPrice();
597
+ const { sqrtPriceX96 } = useCurrentPrice(poolManager, poolKey);
599
598
  const exerciseOption = async ({ option, liquidities }) => {
600
599
  if (!client || !address) throw new Error("Wallet not connected");
601
600
  if (!marketAddr) throw new Error("Market address not available");