the slippage protection not provided sellProfits
As part of the vault strategy, all tokens will be swapped into WETH. The swaps for these tokens are done with no slippage at the moment, i.e. the expected output amount for all of them is given as 0.
The swap is called with amountOutMinimum: 0
, meaning that there is no slippage protection in this swap.
instance:
as you see the amountOutMinimum: 0,
is set to 0 in here
This could result in a significant loss of yield from this reward as MEV bots could “sandwich” this swap by manipulating the price before this transaction and immediately reversing their action after the transaction, profiting at the expense of our swap.
manually
Introduce some slippage parameters into the swaps.
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.