Uniswap: swapExactETHForTokens (3 addresses in path[])

Hello!

as exercise for this course 101, I have integrated the Uniswap V2 router to program a swap. It is successful if I swap ETH to DAI, but :slight_smile:

Once I want to add a path along the route to trade ETH to USDC via DAI for example, it does note work.

Instead of showing the code, I show what my code exactly calls, see in the image below. I get the same problem in my code, as well as in the etherscan GUI:

does anyone know how to do such a swap correctly ?
Thanks,
Ivan

Hi Ivan,

do you get a UniswapV2 error code? If yes,

and

might help to pinpoint the problem.

Best,
Philipp