pub fn find_token_paths<D>(
graph: &TopologyGraph<D>,
from: &Address,
to: &Address,
search: RouteSearch<'_>,
) -> Result<Vec<TokenPath>, AlgorithmError>Expand description
Every route as a sequence of tokens, before any pool is chosen for its legs.
Wraps TopologyGraph::paths_between with the address lookups and the errors the Algorithm
trait reports.
ยงErrors
AlgorithmError::NoPath naming whichever of the two tokens the graph does not hold.