findBestPathFromAmountOut method

Future<(List, List, List, List, List, List)> findBestPathFromAmountOut(
  1. TokenName token1,
  2. TokenName token2,
  3. BigInt amountOut
)

findBestPathFromAmountOut retrives the best path of a given token pair

Implementation

Future<(List, List, List, List, List, List)> findBestPathFromAmountOut(
    TokenName token1, TokenName token2, BigInt amountOut) async {
  return await _findBestPath(token1, token2, amountOut, false);
}