timelock-sdk 0.0.189 → 0.0.190

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
@@ -700,7 +700,7 @@ const useExerciseOption = (marketAddr) => {
700
700
  if (!marketAddr) throw new Error("Market address not available");
701
701
  if (!timelockLens) throw new Error("Timelock lens not available");
702
702
  if (!vault) throw new Error("Vault not available");
703
- if (!poolKey) throw new Error("Pool data not available");
703
+ if (!poolKey || !poolManager) throw new Error("Pool data not available");
704
704
  if (!sqrtPriceX96) throw new Error("Current price not available");
705
705
  const swapper = require_optionUtils.swappers[client.chain.id];
706
706
  if (!swapper) throw new Error("Swapper not available");
@@ -717,6 +717,10 @@ const useExerciseOption = (marketAddr) => {
717
717
  0n,
718
718
  swapper,
719
719
  (0, viem.encodeAbiParameters)([
720
+ {
721
+ type: "address",
722
+ name: "poolManager"
723
+ },
720
724
  {
721
725
  type: "tuple",
722
726
  components: [
@@ -745,6 +749,7 @@ const useExerciseOption = (marketAddr) => {
745
749
  { type: "uint160" },
746
750
  { type: "uint160" }
747
751
  ], [
752
+ poolManager,
748
753
  poolKey,
749
754
  minSqrtPrice,
750
755
  maxSqrtPrice