@kaspacom/swap-sdk 1.1.11 → 1.1.13
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.global.js +2 -3
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1492,7 +1492,7 @@ var SwapService = class {
|
|
|
1492
1492
|
throw new Error("Pairs not loaded yet. Please wait for initialization.");
|
|
1493
1493
|
}
|
|
1494
1494
|
const tradeConfig = {
|
|
1495
|
-
maxHops: 3,
|
|
1495
|
+
maxHops: this.swapOptions.maxHops || 3,
|
|
1496
1496
|
maxNumResults: 1
|
|
1497
1497
|
};
|
|
1498
1498
|
const trades = isOutputAmount ? import_v2_sdk2.Trade.bestTradeExactOut(pairs, sdkFromToken, currencyAmount, tradeConfig) : import_v2_sdk2.Trade.bestTradeExactIn(
|
|
@@ -2092,7 +2092,7 @@ var NETWORKS = {
|
|
|
2092
2092
|
"kasplex-testnet": {
|
|
2093
2093
|
name: "Kasplex Test",
|
|
2094
2094
|
chainId: 167012,
|
|
2095
|
-
rpcUrl: "https://rpc.
|
|
2095
|
+
rpcUrl: "https://rpc.kspr.bot/kasplex/testnet",
|
|
2096
2096
|
routerAddress: "0x81Cc4e7DbC652ec9168Bc2F4435C02d7F315148e",
|
|
2097
2097
|
factoryAddress: "0x89d5842017ceA7dd18D10EE6c679cE199d2aD99E",
|
|
2098
2098
|
proxyAddress: "0x5B7e7830851816f8ad968B0e0c336bd50b4860Ad",
|