The function liquidate() does not have any slippage control.
The function liquidate() does not have any slippage control. If the price retrieved by the oracle is manipulated, this can result in loss for the user as they would receive a very low amount of assets in return for the liquidation.
Loss for the user as they would receive a very low amount of assets in return for the the liquidation.
Vscode
Add a uint amountOut parameter to the function liquidate() which lets user provide the least Amount of Stable Coin they would accept for the provided tokenAmount. Then proceed with mint only if assetAmount > amountOut
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.