rubic-sdk 4.28.1-alpha-syncswap-tokens.0 → 4.28.1-alpha-syncswap-tokens.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 === this.maxTransitTokens + 1);
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,