v2-periphery icon indicating copy to clipboard operation
v2-periphery copied to clipboard

fails with INSUFFICIENT_OUTPUT_AMOUNT

Open CloverGuy opened this issue 5 years ago • 1 comments

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?

CloverGuy avatar Sep 05 '20 11:09 CloverGuy

Hey @CloverGuy, have you read the docs on swapExactTokensForTokens?

PaulRBerg avatar Jan 13 '21 13:01 PaulRBerg