Submitted by csanuragjain, also found by 0x1f8b
User will lose funds if user accidentally pass route with only 1 value which is route[0]=X WETH while calling swapForETH or swapWithETH/swapEntireBalance/swap function.
The same need to be fixed for swapWithETH,swapEntireBalance,swap function as well
Add below check
bghughes (Rubicon) disagreed with severity and commented:
pauliax (warden) commented:
HickupHH3 (judge) decreased severity to Medium and commented:
