In sellProfits()
function, the amountOutMinimum
is set to 0. This means that the swap will accept any amount of tokens back which can result in getting sandwiched by MEV bots.
An MEV bot can initiate a sandwich attack every time sellProfits()
is executed. So, the fees collected by the protocol will always be lower than expected after the swap. In some cases (low liquidity tokens), the swap might return only a tiny fraction of WETH or almost up to nothing at all after the swap.
Manual Review.
Calculate and set the amountOutMinimum
to the swap.
The amountOutMinimum
can be obtained by executing exactInputSingle
function from ISwapRouter
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.