findBestPathFromAmountIn method

Future<(List, List, List, List, List, List)> findBestPathFromAmountIn(
  1. TokenName token1,
  2. TokenName token2,
  3. BigInt amountIn
)

findBestPathFromAmountIn retrives the best path of a given token pair

Implementation

Future<(List, List, List, List, List, List)> findBestPathFromAmountIn(
    TokenName token1, TokenName token2, BigInt amountIn) {
  return _findBestPath(token1, token2, amountIn, true);
}