In the Fee
contract's sellProfits
function, we are performing a swap of loan tokens to collateral tokens but we have set the amountOutMinimum
equal to 0
, which means we accept the minimum tokens came out from this swap are 0
.
This is a huge vulnerabilty!
An attacker bot can listen for the swap transaction and can perform sandwich attacks (frontrunning) using flash loans.
That will cause a loss of funds for swappers
Manual Review
Should check the prize before the swap and pass the minimum expected tokens based on it in the sellProfits
function.
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.