timelock-sdk 0.0.65 → 0.0.67
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/abis.cjs +1 -1
- package/dist/abis.d.cts +1 -1
- package/dist/abis.d.ts +1 -1
- package/dist/abis.js +1 -1
- package/dist/client.cjs +4 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +178 -178
- package/dist/client.d.ts +178 -178
- package/dist/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/{index-ZCeoylWY.d.ts → index-Bl_qMcK3.d.ts} +178 -178
- package/dist/{index-C7ZrOL-D.d.cts → index-CNBDjMaw.d.cts} +269 -269
- package/dist/{numberUtils-Dd7vdmeQ.js → numberUtils-B11mj4uP.js} +3 -3
- package/dist/{numberUtils-Dd7vdmeQ.js.map → numberUtils-B11mj4uP.js.map} +1 -1
- package/dist/{numberUtils-CmVB4kX7.cjs → numberUtils-DTG0cuoW.cjs} +3 -3
- package/dist/{numberUtils-CmVB4kX7.cjs.map → numberUtils-DTG0cuoW.cjs.map} +1 -1
- package/dist/{optionsMarket-DD4CWMqv.js → optionsMarket-6PlyceXp.js} +13 -13
- package/dist/optionsMarket-6PlyceXp.js.map +1 -0
- package/dist/{optionsMarket-D192aXEZ.cjs → optionsMarket-DxGdV3HF.cjs} +13 -13
- package/dist/optionsMarket-DxGdV3HF.cjs.map +1 -0
- package/dist/package.cjs +2 -2
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/dist/{uniswapMathLens-D3iSMTdz.d.cts → uniswapMathLens-C54iWXpi.d.ts} +13 -13
- package/dist/{uniswapMathLens-Ddy91uWa.d.ts → uniswapMathLens-CK8C7WOt.d.cts} +13 -13
- package/package.json +1 -1
- package/dist/optionsMarket-D192aXEZ.cjs.map +0 -1
- package/dist/optionsMarket-DD4CWMqv.js.map +0 -1
package/dist/client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-
|
|
5
|
-
import { C as token1ToToken0, D as getUniswapMathLens, E as getTimelockMarket, O as timelockLenses, S as token0ToToken1, T as getTimelockLens, b as roundTickDown, d as wrapPrice, h as getPriceAtTick, k as uniswapMathLenses, l as wrapAmount, m as PRICE_PRECISION, w as getErc20, y as liquiditiesToAmounts } from "./numberUtils-
|
|
4
|
+
import { r as lensAbi, t as optionsMarketAbi } from "./optionsMarket-6PlyceXp.js";
|
|
5
|
+
import { C as token1ToToken0, D as getUniswapMathLens, E as getTimelockMarket, O as timelockLenses, S as token0ToToken1, T as getTimelockLens, b as roundTickDown, d as wrapPrice, h as getPriceAtTick, k as uniswapMathLenses, l as wrapAmount, m as PRICE_PRECISION, w as getErc20, y as liquiditiesToAmounts } from "./numberUtils-B11mj4uP.js";
|
|
6
6
|
import { n as uniswapV3PoolAbi, t as singleOwnerVaultAbi } from "./singleOwnerVault-BeJChjfJ.js";
|
|
7
7
|
import { encodeAbiParameters, encodeFunctionData, erc20Abi, maxUint256, zeroAddress } from "viem";
|
|
8
8
|
import React, { createContext, useContext, useMemo } from "react";
|
|
@@ -439,7 +439,7 @@ const useMintOption = (marketAddr) => {
|
|
|
439
439
|
duration,
|
|
440
440
|
0
|
|
441
441
|
]);
|
|
442
|
-
await askForApproval(payoutAsset, marketAddr, (premium + protocolFee * 11n
|
|
442
|
+
await askForApproval(payoutAsset, marketAddr, (premium + protocolFee) * 11n / 10n);
|
|
443
443
|
const hash$1 = await writeContractAsync({
|
|
444
444
|
address: marketAddr,
|
|
445
445
|
abi: optionsMarketAbi,
|
|
@@ -620,7 +620,7 @@ const useExtendOption = (marketAddr) => {
|
|
|
620
620
|
duration,
|
|
621
621
|
remainingDuration
|
|
622
622
|
]);
|
|
623
|
-
await askForApproval(payoutAsset, marketAddr, (premium + protocolFee * 11n
|
|
623
|
+
await askForApproval(payoutAsset, marketAddr, (premium + protocolFee) * 11n / 10n);
|
|
624
624
|
const hash$1 = await writeContractAsync({
|
|
625
625
|
address: marketAddr,
|
|
626
626
|
abi: optionsMarketAbi,
|