@kaspacom/swap-sdk 1.1.13 → 1.1.14

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.
@@ -32476,8 +32476,8 @@ var KaspaComSwapSdk = (() => {
32476
32476
  return aIn;
32477
32477
  }
32478
32478
  async getAmountsOut(buyAmountWei, pathAddresses) {
32479
- const [, aOut] = await this.routerContract.getAmountsOut(buyAmountWei, pathAddresses);
32480
- return aOut;
32479
+ const results = await this.routerContract.getAmountsOut(buyAmountWei, pathAddresses);
32480
+ return results[results.length - 1];
32481
32481
  }
32482
32482
  /**
32483
32483
  *
@@ -32521,6 +32521,7 @@ var KaspaComSwapSdk = (() => {
32521
32521
  amountOut = String(parseUnits(targetAmount, buyToken.decimals));
32522
32522
  } else {
32523
32523
  amountOut = String(await this.getAmountsOut(sellAmountWei, pathAddresses));
32524
+ console.log("getAmountsOut", amountOut);
32524
32525
  amountIn = String(parseUnits(targetAmount, sellToken.decimals));
32525
32526
  }
32526
32527
  let amounts = {