v2-periphery
v2-periphery copied to clipboard
fails with INSUFFICIENT_OUTPUT_AMOUNT
require(amounts[amounts.length - 1] >= amountOutMin, 'UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT');
this line seems to be failing a lot, can you elaborate about what causes this?
Hey @CloverGuy, have you read the docs on swapExactTokensForTokens?