rubic-sdk 4.28.1-alpha-syncswap-tokens.1 → 4.28.1-alpha-syncswap-tokens.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/rubic-sdk.min.js +2 -2
- package/dist/rubic-sdk.min.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/sync-swap-abstract/sync-swap-abstract-provider.js +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/common/sync-swap-abstract/sync-swap-abstract-provider.js.map +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/sync-swap/zksync-sync-swap-provider.d.ts +1 -1
- package/lib/features/on-chain/calculation-manager/providers/dexes/zksync/sync-swap/zksync-sync-swap-provider.js +1 -1
- package/package.json +1 -1
package/dist/rubic-sdk.min.js
CHANGED
@@ -233610,7 +233610,7 @@ class SyncSwapAbstractProvider extends evm_on_chain_provider_1.EvmOnChainProvide
|
|
233610
233610
|
}
|
233611
233611
|
const paths = sync_swap_path_factory_1.SyncSwapPathFactory.findAllPossiblePaths(fromProxy.address, toProxy.address, availablePools);
|
233612
233612
|
const filteredPaths = await sync_swap_path_factory_1.SyncSwapPathFactory.getBestPath(paths, fromWithoutFee.stringWeiAmount, this.blockchain);
|
233613
|
-
const sortedPaths = filteredPaths.filter(item => item.length
|
233613
|
+
const sortedPaths = filteredPaths.filter(item => item.length <= this.maxTransitTokens + 1);
|
233614
233614
|
const bestRoute = await sync_swap_router_1.SyncSwapRouter.findBestAmountsForPathsExactIn(sortedPaths, fromWithoutFee.stringWeiAmount, this.blockchain);
|
233615
233615
|
const to = new tokens_1.PriceTokenAmount({
|
233616
233616
|
...toToken.asStruct,
|
@@ -247693,7 +247693,7 @@ class ZkSyncSyncSwapProvider extends sync_swap_abstract_provider_1.SyncSwapAbstr
|
|
247693
247693
|
'0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4' // USDC
|
247694
247694
|
];
|
247695
247695
|
this.masterAddress = '0xbb05918e9b4ba9fe2c8384d223f0844867909ffb';
|
247696
|
-
this.maxTransitTokens =
|
247696
|
+
this.maxTransitTokens = 1;
|
247697
247697
|
}
|
247698
247698
|
}
|
247699
247699
|
exports.ZkSyncSyncSwapProvider = ZkSyncSyncSwapProvider;
|