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/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-DD4CWMqv.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-Dd7vdmeQ.js";
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) / 10n);
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) / 10n);
623
+ await askForApproval(payoutAsset, marketAddr, (premium + protocolFee) * 11n / 10n);
624
624
  const hash$1 = await writeContractAsync({
625
625
  address: marketAddr,
626
626
  abi: optionsMarketAbi,