@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.
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.global.js +3 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -32476,8 +32476,8 @@ var KaspaComSwapSdk = (() => {
|
|
|
32476
32476
|
return aIn;
|
|
32477
32477
|
}
|
|
32478
32478
|
async getAmountsOut(buyAmountWei, pathAddresses) {
|
|
32479
|
-
const
|
|
32480
|
-
return
|
|
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 = {
|