accept zero as amountOutMinimum opening up the user to a catastrophic loss of funds via MEV sandwich attack
the minimum amount of tokens they want to be returned from a swap should not be zero because this will opening up the user to a huge loss of funds via price slippage attacks and MEV bot sandwich attacks.
This code tells the swap that the user will accept a minimum amount of 0 output tokens from the swap
amountOutMinimum = 0 will result in huge loss of fund of the user or the protocol that will do the swap
and this allow the returned amount from the swap to be zero
manual review
the protocol should specify a slippage parameter amountOutMinimum to provide the protection from price slippage attack .
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.