Lacking of protection for borrowers just in case they take loans at maximum allowed by LTV ratio.
As a result, the borrower could get liquidated the moment they borrow a loan.
Before a borrower can mint certain euros from their collateral asset, they should pass a requirement that the minted amount they want to create should be equal or less than the maxMintable, maxMintable is the measurement of the protocol to know what is the maximum value of euros allowed to be borrowed based on deposited collateral asset by the borrower and collateral rate set by protocol. We can compute LTV ratio as loaned assets divided by collateral assets.
Next step, let's see on how the liquidation works, this will be executed by the function liquidate and it has requirement that the borrower position should be undercollateralised before it proceed.
As you can see below, undercollateralised function is using maxMintable as the basis to trigger the liquidation.
Let us remember that the maxMintable is also use in the calculation of maximum loan allowed to be borrowed, in that case, it is only showing that the liquidation threshold is equal to LTV ratio. If the maxMintable changes only a very slight difference below the minted value, this will trigger liquidation immediately, in which it shows there is no safety buffer for borrowers to prepare and save their collateral assets from being liquidated.
Let us illustrate here a scenario showing the case of a user being liquidated with no safety buffer.
The collateral rate set by protocol is 110%.
1 Borrower take a loan at maximum value equal to collateral rate of 110%. He minted (loan) 100 euros out of 110 euros equivalent collateral asset.
2 Suddenly the collateral value drop from 110 euros to 108.9 euros due to slight market volatility. That is only 1% drop from original value.
3 At this moment, liquidation is already open for execution because the computation of maxMintable is already less than the minted value of 100 euros.
Currently, maxMintable is 99 euros (108.9 euro collateral / 110% collateral rate).
4 Borrower has no time to prepare to deposit another collateral and the liquidators already started the liquidation process.
5 No collateral assets remained inside the vault and already distributed to liquidators and protocol.
Borrowers can be liquidated unfairly due to no safety buffer. A slight market movement can already cause liquidation.
Manual review
Liquidation threshold should not be equal to LTV ratio and must be higher that should give enough preparation to borrower to add collateral assets.
In our case illustration, the LTV ratio is 90.9% (100 euros loaned assets / 110 euros collateral assets) because collateral ratio is 110%. So if we need to implement liquidation threshold it should be higher than 90.9%, enough buffer for borrower, let's say for example is 95% (100 euros loaned assets / 105.2 euros collateral assets value)
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.