@cetusprotocol/aggregator-sdk 0.0.0-experimental-20250625175152 → 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 +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7714,8 +7714,8 @@ function parseRouterResponse(data, byAmountIn) {
|
|
|
7714
7714
|
version
|
|
7715
7715
|
};
|
|
7716
7716
|
}),
|
|
7717
|
-
amountIn: new import_bn5.default(route.amount_in.toString()),
|
|
7718
|
-
amountOut: new import_bn5.default(route.amount_out.toString()),
|
|
7717
|
+
amountIn: new import_bn5.default(BigInt(route.amount_in).toString()),
|
|
7718
|
+
amountOut: new import_bn5.default(BigInt(route.amount_out).toString()),
|
|
7719
7719
|
initialPrice: new decimal_default(route.initial_price.toString())
|
|
7720
7720
|
};
|
|
7721
7721
|
}),
|
|
@@ -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
|
@@ -7712,8 +7712,8 @@ function parseRouterResponse(data, byAmountIn) {
|
|
|
7712
7712
|
version
|
|
7713
7713
|
};
|
|
7714
7714
|
}),
|
|
7715
|
-
amountIn: new import_bn5.default(route.amount_in.toString()),
|
|
7716
|
-
amountOut: new import_bn5.default(route.amount_out.toString()),
|
|
7715
|
+
amountIn: new import_bn5.default(BigInt(route.amount_in).toString()),
|
|
7716
|
+
amountOut: new import_bn5.default(BigInt(route.amount_out).toString()),
|
|
7717
7717
|
initialPrice: new decimal_default(route.initial_price.toString())
|
|
7718
7718
|
};
|
|
7719
7719
|
}),
|
|
@@ -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";
|