The contract checks whether a vault is liquidatable by calling the isLiquidatable()
function. This functions checks the current minted amount against the maximum amount mintable as shown below.
The issue is that the user can mint all the way upto the maxMintable()
amount themselves. So a user can get liquidated immediately after a borrow, with no buffer. Other lending protocols have separate mint limits and liqudiation limits, allowing a buffer for the price to fluctuate a bit.
Due to no implemented buffer, users can get liquidated immediately after a borrow due to very small price fluctuations.
Users can face unexpected liquidations
Manual Review
Have a separate liquidation limit. Alow users to mint upto maxMintable
, but only allow liquidation if the collateralization ratio is below a lower threshold.
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.