Remove bad debt realization mechanism #542
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From the whitepaper:
The goals of this feature are:
Lenders can avoid haircut
Nothing ensures that liquidators realize the bad debts, even if incentives tend to make them do it. It can happen that they don’t liquidate positions to the nearest wei, on purpose or not. In this situation, lenders who notice the situation can withdraw their funds, realize the bad debt and resupply their funds. This way, they don’t occur any loss, but other lenders occur more losses.
Lenders could also well become liquidators themselves to do this “manipulation” before liquidators who might do it. Even if it is a special role requiring particular skills and infrastructure, they technically have more incentives to do it than liquidators and this has to be taken into account.
These issues were known and acknowledged (but still reported by OZ in [their audit](https://github.com/morpho-org/morpho-blue/blob/main/audits/2023-09-27-morpho-blue-and-speed-jump-irm-open-zeppelin.pdf) of Morpho Blue). As a result, bad debt realization is not completely fair (some people can loose more than other).
Lenders can pay liquidators to avoid haircut
There is actually a deeper issue: lenders could well give authorization to manage their position to a special contract that allows liquidators to do this manipulations on behalf of one of multiple lenders. The lenders incentivize the liquidator to do so by sharing with them the revenue (or the non loss) of the operation.
With this mechanism, multiple lenders can now profit from the “manipulation”, and they all have incentives to try using it. The equilibrium of this “game” is that the lenders who are not subscribing to such a contract, or not incentivizing enough the liquidator take all the bad debt for themselves (potentially occurring big relative loss, up to 100% of their funds). Even if the idea is very theoretical, the incentives pull the system to something that can even be seen as worse than before (1. happens for each new bad debt, instead of only when the bad debt becomes too big, but on smaller amounts).
Big thanks to @Picodes from Angle Labs who highlighted this second issue.
The solution
The solution is to remove the bad debt realization mechanism. It seems that there is no good way to solve 1. in the context of a pool like Morpho Blue markets. And 2. is mitigated by the idea that you can recreate the market when you are no longer confortable with the bad debt that it contains.