@cetusprotocol/aggregator-sdk 0.0.0-experimental-20250623190323 → 0.0.0-experimental-20250625175152
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 +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7825,6 +7825,7 @@ function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceive
|
|
|
7825
7825
|
};
|
|
7826
7826
|
}
|
|
7827
7827
|
const data = yield response.json();
|
|
7828
|
+
console.log("sdk getRouterResult \u{1F680} ~ data:", data);
|
|
7828
7829
|
const insufficientLiquidity = data.msg === "liquidity is not enough";
|
|
7829
7830
|
if (data.msg && data.msg.indexOf("HoneyPot scam") > -1) {
|
|
7830
7831
|
return {
|
|
@@ -7843,6 +7844,7 @@ function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceive
|
|
|
7843
7844
|
}
|
|
7844
7845
|
if (data.data != null) {
|
|
7845
7846
|
const res = parseRouterResponse(data.data, params.byAmountIn);
|
|
7847
|
+
console.log("sdk getRouterResult parseRouterResponse \u{1F680} ~ res:", res);
|
|
7846
7848
|
if (overlayFee > 0 && overlayFeeReceiver !== "0x0") {
|
|
7847
7849
|
if (params.byAmountIn) {
|
|
7848
7850
|
const overlayFeeAmount = res.amountOut.mul(new import_bn7.default(overlayFee)).div(new import_bn7.default(1e6));
|
package/dist/index.mjs
CHANGED
|
@@ -7823,6 +7823,7 @@ function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceive
|
|
|
7823
7823
|
};
|
|
7824
7824
|
}
|
|
7825
7825
|
const data = yield response.json();
|
|
7826
|
+
console.log("sdk getRouterResult \u{1F680} ~ data:", data);
|
|
7826
7827
|
const insufficientLiquidity = data.msg === "liquidity is not enough";
|
|
7827
7828
|
if (data.msg && data.msg.indexOf("HoneyPot scam") > -1) {
|
|
7828
7829
|
return {
|
|
@@ -7841,6 +7842,7 @@ function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceive
|
|
|
7841
7842
|
}
|
|
7842
7843
|
if (data.data != null) {
|
|
7843
7844
|
const res = parseRouterResponse(data.data, params.byAmountIn);
|
|
7845
|
+
console.log("sdk getRouterResult parseRouterResponse \u{1F680} ~ res:", res);
|
|
7844
7846
|
if (overlayFee > 0 && overlayFeeReceiver !== "0x0") {
|
|
7845
7847
|
if (params.byAmountIn) {
|
|
7846
7848
|
const overlayFeeAmount = res.amountOut.mul(new import_bn7.default(overlayFee)).div(new import_bn7.default(1e6));
|