Uniswap swap done in sellProfits()
can be sandwiched heavily.
sellProfits()
makes a Uniswap trade and sets amountOutMinimum
to 0:
Thus this trade succeeds even if the amount received from the swap is 0. This allows anyone to sandwich this trade for their own profit resulting in 0 WETH in sellProfits()
Uniswap trade.
Any token sold via sellProfits()
for WETH will result in a heavy loss.
Manual
Add a _amountOutMinimum
parameter to sellProfits
which is passed to amountOutMinimum
. This ensures that the caller has control over the slippage.
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.