Submitted by cmichel, also found by tensors
There are no minimum amounts out, or checks that frontrunning/slippage is sufficiently mitigated.
This means that anyone with enough capital can force arbitrarily large slippage by sandwiching transactions, close to 100%. See issue page for referenced code.
Recommend adding a minimum amount out parameter. The function reverts if the minimum amount isnt obtained.
verifyfirst (Spartan) acknowledge:
SamusEldburg (Spartan) confirmed and disagreed with severity:
ghoul-sol (Judge) commented:
