Uniswap: swapExactETHForTokens (3 addresses in path[])


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 ?

Hi Ivan,

do you get a UniswapV2 error code? If yes,


might help to pinpoint the problem.