@oydual31/more-vaults-sdk 1.1.3 → 1.1.5

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.
@@ -2187,9 +2187,15 @@ async function resolveComposeNativeValue(hubClient, vault, composerAddress, spok
2187
2187
  })
2188
2188
  ]);
2189
2189
  const readFee = readFeeResult.status === "fulfilled" ? readFeeResult.value : 0n;
2190
- if (shareOftResult.status === "fulfilled") {
2190
+ if (readFeeResult.status === "rejected") {
2191
+ console.warn("[more-vaults-sdk] resolveComposeNativeValue: quoteAccountingFee failed", readFeeResult.reason);
2192
+ }
2193
+ if (shareOftResult.status === "rejected") {
2194
+ console.warn("[more-vaults-sdk] resolveComposeNativeValue: SHARE_OFT() failed on composer", composerAddress, shareOftResult.reason);
2195
+ } else {
2191
2196
  try {
2192
2197
  const shareOft = shareOftResult.value;
2198
+ console.warn("[more-vaults-sdk] resolveComposeNativeValue: calling quoteSend on", shareOft, "dstEid", spokeEid);
2193
2199
  const feeQuote = await hubClient.readContract({
2194
2200
  address: shareOft,
2195
2201
  abi: OFT_ABI,
@@ -2204,10 +2210,13 @@ async function resolveComposeNativeValue(hubClient, vault, composerAddress, spok
2204
2210
  oftCmd: "0x"
2205
2211
  }, false]
2206
2212
  });
2213
+ console.warn("[more-vaults-sdk] resolveComposeNativeValue: quoteSend ok", feeQuote.nativeFee);
2207
2214
  return readFee + feeQuote.nativeFee;
2208
- } catch {
2215
+ } catch (e) {
2216
+ console.warn("[more-vaults-sdk] resolveComposeNativeValue: quoteSend failed, using fallback", e);
2209
2217
  }
2210
2218
  }
2219
+ console.warn("[more-vaults-sdk] resolveComposeNativeValue: using fallback readFee*5 =", readFee * 5n);
2211
2220
  return readFee > 0n ? readFee * 5n : 500000000000000n;
2212
2221
  }
2213
2222
  function resolveOftCmd(_oft) {