timelock-sdk 0.0.168 → 0.0.169

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
@@ -1765,13 +1765,13 @@ const useUpdateMarketPricing = (marketAddr) => {
1765
1765
  const queryClient = (0, __tanstack_react_query.useQueryClient)();
1766
1766
  const publicClient = (0, wagmi.usePublicClient)();
1767
1767
  const chainId = (0, wagmi.useChainId)();
1768
- const { data: { feeStrategy, optionPricing } } = useMarketState();
1769
- const { data: pricingData } = usePricingParams(optionPricing);
1768
+ const { data: { feeStrategy, optionPricing }, error: stateError } = useMarketState();
1769
+ const { data: pricingData, error: pricingError } = usePricingParams(optionPricing);
1770
1770
  const updateMarketPricing = async (data) => {
1771
1771
  if (!marketAddr) throw new Error("Market address not found");
1772
- if (!pricingData) throw new Error("Market pricing data not available");
1772
+ if (!pricingData) throw new Error("Market pricing data not available: " + (pricingError === null || pricingError === void 0 ? void 0 : pricingError.message));
1773
1773
  if (!publicClient) throw new Error("Public client not available");
1774
- if (!feeStrategy) throw new Error("Fee strategy not available");
1774
+ if (!feeStrategy) throw new Error("Fee strategy not available: " + (stateError === null || stateError === void 0 ? void 0 : stateError.message));
1775
1775
  const factoryAddr = require_optionUtils.timelockFactories[chainId].toLowerCase();
1776
1776
  if (data.model === "static" && pricingData.model === "static") {
1777
1777
  data.dailyFundingRate ?? (data.dailyFundingRate = pricingData.dailyFundingRate);