timelock-sdk 0.0.140 → 0.0.142

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
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
 
4
- const require_optionUtils = require('./optionUtils-pIZ0mbRp.cjs');
4
+ const require_optionUtils = require('./optionUtils-CFucfVf-.cjs');
5
5
  const require_optionsMarket = require('./optionsMarket-ohPoVcdm.cjs');
6
6
  const require_singleOwnerVault = require('./singleOwnerVault-GCpQV7pN.cjs');
7
7
  let viem = require("viem");
@@ -603,9 +603,10 @@ const useMaxPositionSize = (marketAddr, maxBorrowableRange = 100) => {
603
603
  //#endregion
604
604
  //#region src/hooks/pool/useCurrentTick.ts
605
605
  const useCurrentTick = (poolManager, poolKey) => {
606
+ const { stateView } = useLens();
606
607
  const { tickSpacing } = usePoolData(poolManager, poolKey);
607
608
  const { data, ...rest } = (0, wagmi.useReadContract)({
608
- address: poolManager,
609
+ address: stateView === null || stateView === void 0 ? void 0 : stateView.address,
609
610
  abi: require_optionUtils.statelessStateViewAbi,
610
611
  functionName: "getSlot0",
611
612
  args: poolManager && poolKey ? [poolManager, poolKey] : void 0,