timelock-sdk 0.0.89 → 0.0.91

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
@@ -962,7 +962,7 @@ const useMintPerp = (marketAddr) => {
962
962
  const { tickSpacing } = usePoolData(pool);
963
963
  const { exact: currentTick } = useCurrentTick(pool);
964
964
  const userPerms = operatorAddr ? operators.find((o) => o.operatorAddr.toLowerCase() === operatorAddr.toLowerCase()) : void 0;
965
- const hasEnoughPerms = userPerms && userPerms.canMint && userPerms.canExtend;
965
+ const hasEnoughPerms = userPerms && userPerms.canMint && userPerms.canExtend && userPerms.canExercise;
966
966
  const mintPerp = async (data) => {
967
967
  const { optionType, amount, duration, strikeTick } = data;
968
968
  if (!client || !address) throw new Error("Wallet not connected");
@@ -974,7 +974,7 @@ const useMintPerp = (marketAddr) => {
974
974
  operator: operatorAddr,
975
975
  canMint: true,
976
976
  canExtend: true,
977
- canExercise: (userPerms === null || userPerms === void 0 ? void 0 : userPerms.canExercise) || false,
977
+ canExercise: true,
978
978
  canTransfer: (userPerms === null || userPerms === void 0 ? void 0 : userPerms.canTransfer) || false,
979
979
  spendingApproval: viem.maxUint256
980
980
  });