@defuse-protocol/intents-sdk 0.45.1 → 0.45.2

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.
@@ -84,7 +84,7 @@ async function getFeeQuote({ feeAmount, feeAssetId, tokenAssetId, quoteOptions,
84
84
  throw err;
85
85
  }
86
86
  if (BigInt(quote.amount_out) < feeAmount) {
87
- logger?.warn("Quote amount_out is less than feeAmount");
87
+ logger?.warn(`Quote amount_out (${quote.amount_out}) is less than feeAmount (${feeAmount}), exact_amount_in: ${exactAmountIn}, fee asset price: ${feeAssetPrice.price} USD, token asset price: ${tokenAssetPrice.price} USD`);
88
88
  throw err;
89
89
  }
90
90
  return quote;
@@ -83,7 +83,7 @@ async function getFeeQuote({ feeAmount, feeAssetId, tokenAssetId, quoteOptions,
83
83
  throw err;
84
84
  }
85
85
  if (BigInt(quote.amount_out) < feeAmount) {
86
- logger?.warn("Quote amount_out is less than feeAmount");
86
+ logger?.warn(`Quote amount_out (${quote.amount_out}) is less than feeAmount (${feeAmount}), exact_amount_in: ${exactAmountIn}, fee asset price: ${feeAssetPrice.price} USD, token asset price: ${tokenAssetPrice.price} USD`);
87
87
  throw err;
88
88
  }
89
89
  return quote;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defuse-protocol/intents-sdk",
3
- "version": "0.45.1",
3
+ "version": "0.45.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "repository": {