aftermath-ts-sdk 0.0.164 → 0.0.165
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.
|
@@ -495,13 +495,12 @@ RouterGraph.findCompleteRoutes = (graph, routes, coinOut, maxRouteLength, isGive
|
|
|
495
495
|
for (const [coinOut, throughPools] of Object.entries(graph.coinNodes[lastPath.coinOut.type]
|
|
496
496
|
.coinOutThroughPoolEdges)) {
|
|
497
497
|
for (const poolUid of throughPools) {
|
|
498
|
-
if (
|
|
499
|
-
//
|
|
500
|
-
//
|
|
501
|
-
|
|
502
|
-
//
|
|
503
|
-
|
|
504
|
-
lastPath.poolUid === poolUid)
|
|
498
|
+
if (route.paths.some(
|
|
499
|
+
// NOTE: would it ever make sense to go back into a pool ?
|
|
500
|
+
// (could relax this restriction)
|
|
501
|
+
(path) => path.poolUid === poolUid)
|
|
502
|
+
// lastPath.poolUid === poolUid
|
|
503
|
+
)
|
|
505
504
|
continue;
|
|
506
505
|
if (!(poolUid in graph.pools))
|
|
507
506
|
continue;
|