Loosely implementation of slippage would lead to loss of funds to MEV
When performing swaps the allowable slippage is calculated within the contract, the issue is that calculateMinimumAmountOut() would return zero when collateralValueMinusSwapValue >= requiredCollateralValue which provides no slippage for the swap meaning zero value could also be received. On the other branch of the trinary operation the function loosely calculate minimumAmountOut since requiredCollateralValue - collateralValueMinusSwapValue could return a relatively small value as well meaning other values are likely to be lost to MEV.
Funds could be lost when performing swaps from vaults
Manual Review
Allow the owner to provide an acceptable minimumAmountOut on performing swap.
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.