timelock-sdk 0.0.155 → 0.0.157

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
@@ -814,14 +814,13 @@ const useOptionPremium = (marketAddr, optionType, optionAmount, addedDuration, r
814
814
  address: marketAddr,
815
815
  abi: require_optionsMarket.optionsMarketAbi,
816
816
  functionName: "calculatePremium",
817
- args: strikeTickRounded !== void 0 ? [
817
+ args: strikeTickRounded !== void 0 && optionAmount !== void 0 && addedDuration !== void 0 ? [
818
818
  optionType === "CALL" ? 0 : 1,
819
819
  optionAmount,
820
820
  strikeTickRounded,
821
821
  addedDuration,
822
822
  remainingDuration
823
- ] : void 0,
824
- query: { enabled: strikeTickRounded !== void 0 }
823
+ ] : void 0
825
824
  });
826
825
  return (0, react.useMemo)(() => {
827
826
  if (premium === void 0 || protocolFee === void 0 || payoutAssetDecimals === void 0) return {};
@@ -2187,16 +2186,13 @@ const usePauseMarketTrading = ({ marketAddr }) => {
2187
2186
  //#region src/hooks/fees/useFeeRates.ts
2188
2187
  const useFeeRates = (feeStrategy) => {
2189
2188
  const { timelockLens } = useLens();
2190
- const { data, ...rest } = (0, wagmi.useReadContract)({
2189
+ const { data } = (0, wagmi.useReadContract)({
2191
2190
  address: timelockLens === null || timelockLens === void 0 ? void 0 : timelockLens.address,
2192
2191
  abi: require_optionsMarket.lensAbi,
2193
2192
  args: feeStrategy ? [feeStrategy] : void 0,
2194
2193
  functionName: "getFeeRates"
2195
2194
  });
2196
- return {
2197
- data: data || {},
2198
- ...rest
2199
- };
2195
+ return data || {};
2200
2196
  };
2201
2197
 
2202
2198
  //#endregion