FlashLoanLiquidate#JOJOFlashLoan doesn't allow user to specify any slippage conditions
Summary
FlashLoanLiquidate#JOJOFlashLoan utilizes a swap to swap collateral to USDC but doesn't allow the user to specify a minimum out so they have no way to limit slippage.
Above the swap for FlashLoanLiquidate#JOJOFlashLoan doesn't allow the user to specify any slippage, allowing all swaps to be sandwich attacked and all liquidator profit stolen.
Impact
Swaps inside liquidate can be sandwiched due to no slippage protection
0x52
medium
FlashLoanLiquidate#JOJOFlashLoan doesn't allow user to specify any slippage conditions
Summary
FlashLoanLiquidate#JOJOFlashLoan utilizes a swap to swap collateral to USDC but doesn't allow the user to specify a minimum out so they have no way to limit slippage.
Vulnerability Detail
https://github.com/sherlock-audit/2023-04-jojo/blob/main/JUSDV1/src/Impl/flashloanImpl/FlashLoanLiquidate.sol#L53-L72
Above the swap for FlashLoanLiquidate#JOJOFlashLoan doesn't allow the user to specify any slippage, allowing all swaps to be sandwich attacked and all liquidator profit stolen.
Impact
Swaps inside liquidate can be sandwiched due to no slippage protection
Code Snippet
https://github.com/sherlock-audit/2023-04-jojo/blob/main/JUSDV1/src/Impl/flashloanImpl/FlashLoanLiquidate.sol#L46-L96
Tool used
Manual Review
Recommendation
Add a minOut parameter
Duplicate of #373