Open lidd77 opened 2 years ago
Just guess the path ( pair ) with enough liquidity to trade.
For example if you want to swap USDT against ETH the pair would be
path := [USDT, WETH];
And if you want to swap USDC for ETH but you want to route the USDC-USDT pair then it would be
path := [USDC, USDT, WETH];
hey, when I call the next function :
I need to find the full path data . As we know , there will have more than two pairs for
address[] path
, so how to get the right and full path result ?