@cetusprotocol/aggregator-sdk 0.14.1 → 0.14.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.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -7763,7 +7763,7 @@ function parseRouterResponse(data, byAmountIn) {
|
|
|
7763
7763
|
let routerData = {
|
|
7764
7764
|
amountIn: new import_bn5.default(data.amount_in.toString()),
|
|
7765
7765
|
amountOut: new import_bn5.default(data.amount_out.toString()),
|
|
7766
|
-
deviationRatio: data.deviation_ratio ? Number(data.deviation_ratio) : 0,
|
|
7766
|
+
deviationRatio: data.deviation_ratio ? Number(data.deviation_ratio) : void 0,
|
|
7767
7767
|
byAmountIn,
|
|
7768
7768
|
insufficientLiquidity: false,
|
|
7769
7769
|
routes: data.routes.map((route) => {
|
|
@@ -7908,7 +7908,7 @@ function processEndpoint(endpoint) {
|
|
|
7908
7908
|
|
|
7909
7909
|
// src/api.ts
|
|
7910
7910
|
var import_bn7 = __toESM(require_bn());
|
|
7911
|
-
var SDK_VERSION =
|
|
7911
|
+
var SDK_VERSION = 1001402;
|
|
7912
7912
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
7913
7913
|
return __async(this, null, function* () {
|
|
7914
7914
|
let response;
|
package/dist/index.mjs
CHANGED
|
@@ -7757,7 +7757,7 @@ function parseRouterResponse(data, byAmountIn) {
|
|
|
7757
7757
|
let routerData = {
|
|
7758
7758
|
amountIn: new import_bn5.default(data.amount_in.toString()),
|
|
7759
7759
|
amountOut: new import_bn5.default(data.amount_out.toString()),
|
|
7760
|
-
deviationRatio: data.deviation_ratio ? Number(data.deviation_ratio) : 0,
|
|
7760
|
+
deviationRatio: data.deviation_ratio ? Number(data.deviation_ratio) : void 0,
|
|
7761
7761
|
byAmountIn,
|
|
7762
7762
|
insufficientLiquidity: false,
|
|
7763
7763
|
routes: data.routes.map((route) => {
|
|
@@ -7902,7 +7902,7 @@ function processEndpoint(endpoint) {
|
|
|
7902
7902
|
|
|
7903
7903
|
// src/api.ts
|
|
7904
7904
|
var import_bn7 = __toESM(require_bn());
|
|
7905
|
-
var SDK_VERSION =
|
|
7905
|
+
var SDK_VERSION = 1001402;
|
|
7906
7906
|
function getRouterResult(endpoint, apiKey, params, overlayFee, overlayFeeReceiver) {
|
|
7907
7907
|
return __async(this, null, function* () {
|
|
7908
7908
|
let response;
|