I am trying to integrate Quickswap/Uniswap into my smart contract and would like to make use of the âswapTokensForExactTokensâ function as in: https://uniswap.org/docs/v2/smart-contracts/router02/
There is a path variable which is an array of addresses as to how the tokens will be exchanged prior to the final conversion. However, from my understanding, Uniswap auto-generates the path and passes it to the function. All tutorials that I have found so far have the developer hardcoding the path. Can you give me some insight as to how to auto-generate the path as Uniswap does for pairs that donât exist.
Thank you!