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-C5RLDuP0.d.ts → client-CYa7ruZt.d.ts} +146 -146
- package/dist/{client-2PuKJF9C.d.cts → client-pWy70TUj.d.cts} +81 -81
- package/dist/client.cjs +2 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
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:
|
|
977
|
+
canExercise: true,
|
|
978
978
|
canTransfer: (userPerms === null || userPerms === void 0 ? void 0 : userPerms.canTransfer) || false,
|
|
979
979
|
spendingApproval: viem.maxUint256
|
|
980
980
|
});
|