@cetusprotocol/aggregator-sdk 0.0.0-experimental-20250625180535 → 0.0.0-experimental-20250625184202

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/index.js CHANGED
@@ -7708,8 +7708,8 @@ function parseRouterResponse(data, byAmountIn) {
7708
7708
  from: path.from,
7709
7709
  target: path.target,
7710
7710
  feeRate: path.fee_rate,
7711
- amountIn: BigInt(path.amount_in).toString(),
7712
- amountOut: BigInt(path.amount_out).toString(),
7711
+ amountIn: path.amount_in,
7712
+ amountOut: path.amount_out,
7713
7713
  extendedDetails,
7714
7714
  version
7715
7715
  };
@@ -7824,6 +7824,9 @@ function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceive
7824
7824
  }
7825
7825
  };
7826
7826
  }
7827
+ console.log("sdk getRouterResult \u{1F680} ~ response:", response);
7828
+ const test = yield response.text();
7829
+ console.log("sdk getRouterResult \u{1F680} ~ test:", test);
7827
7830
  const data = yield response.json();
7828
7831
  console.log("sdk getRouterResult \u{1F680} ~ data:", data);
7829
7832
  const insufficientLiquidity = data.msg === "liquidity is not enough";
package/dist/index.mjs CHANGED
@@ -7706,8 +7706,8 @@ function parseRouterResponse(data, byAmountIn) {
7706
7706
  from: path.from,
7707
7707
  target: path.target,
7708
7708
  feeRate: path.fee_rate,
7709
- amountIn: BigInt(path.amount_in).toString(),
7710
- amountOut: BigInt(path.amount_out).toString(),
7709
+ amountIn: path.amount_in,
7710
+ amountOut: path.amount_out,
7711
7711
  extendedDetails,
7712
7712
  version
7713
7713
  };
@@ -7822,6 +7822,9 @@ function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceive
7822
7822
  }
7823
7823
  };
7824
7824
  }
7825
+ console.log("sdk getRouterResult \u{1F680} ~ response:", response);
7826
+ const test = yield response.text();
7827
+ console.log("sdk getRouterResult \u{1F680} ~ test:", test);
7825
7828
  const data = yield response.json();
7826
7829
  console.log("sdk getRouterResult \u{1F680} ~ data:", data);
7827
7830
  const insufficientLiquidity = data.msg === "liquidity is not enough";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cetusprotocol/aggregator-sdk",
3
- "version": "0.0.0-experimental-20250625180535",
3
+ "version": "0.0.0-experimental-20250625184202",
4
4
  "sideEffects": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",