@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 CHANGED
@@ -337,7 +337,7 @@ type RouterData = {
337
337
  byAmountIn: boolean;
338
338
  routes: Router[];
339
339
  insufficientLiquidity: boolean;
340
- deviationRatio: number;
340
+ deviationRatio?: number;
341
341
  packages?: Map<string, string>;
342
342
  totalDeepFee?: number;
343
343
  error?: RouterError;
package/dist/index.d.ts CHANGED
@@ -337,7 +337,7 @@ type RouterData = {
337
337
  byAmountIn: boolean;
338
338
  routes: Router[];
339
339
  insufficientLiquidity: boolean;
340
- deviationRatio: number;
340
+ deviationRatio?: number;
341
341
  packages?: Map<string, string>;
342
342
  totalDeepFee?: number;
343
343
  error?: RouterError;
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 = 1001400;
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 = 1001400;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cetusprotocol/aggregator-sdk",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "sideEffects": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",