5 Less Obvious Things about Morpho Midnight
A better lending primitive for RWAs (among other assets).
We generally try to cover every new interesting protocol release but there just haven't been that many recently.
Morpho Midnight changes that. It's a fixed rate lending primitive with a built-in order book. It's particularly timely since the primitive will likely fit well with requirements of RWA issuers and institutional lenders as well as provide a much needed new source of onchain yield.
So if you haven't had the chance to read the whitepaper and codebase, I compiled some things that are worthy to note.
1. It supports under-collateralized borrowing
While this is not something that Morpho publicly advertised, note that position health is simply a function of oracle price:
Which means that market creators can use oracles that intentionally over-price positions AND liquidations are gated:
2. Debt and credit are fungible
An interesting feature is that these agreements are entirely fungible and transferable (provided solvency is preserved).
This is also facilitated by the fact that debt acts as a zero-coupon obligation meaning you repay the whole obligation at the end rather than in interest increments.
3. Midnight achieves higher capital efficiency through JIT capital provisioning
Offers implement callbacks which is convenient for maximizing capital utilization for lenders:
Similarly, capital efficiency is also preserved at the protocol level meaning that the total outstanding order size can outstrip available capital and operate on a first-come-first-served basis:
Requiring order matching impacts liquidity so these are important mitigations to ensure maximum possible liquidity for market participants.
4. Routing will be complex!
Just like for Uniswap v4, the protocol outsources several key functions to routers.
Optimal routing won't be easy at all, routers will have to:
Prioritize offers;
Respect and model the implications of callbacks and multi-market offers;
Understand implications of different oracles;
Recognize opportunities for netting;
etc.
In Uniswap v4, routers ended up being conservative with whitelisting pools and I suspect the same will apply to Midnight at least initially.
5. New protocols can be built on top of Midnight
Most importantly, while the protocol relies heavily on off chain matching, the primitives are simple enough that onchain wrappers could be developed as well.
For example, third parties could build:
Custom markets for their assets (particularly relevant for RWA issuers who may be opinionated on oracle usage and gating access analogous to custom hooks in Uniswap v4;
Routing (see above);
Multi-step borrowing/lending strategies (e.g., rolling debt);
Automated supply from third-party protocols (e.g., vaults).
I'm excited to see what this enables. As is custom with the Morpho team, the primary contract has been code golfed heavily to just <1000 lines of code (including comments!) โ a lovely poke at the AAVE team which is notorious for heavy complexity due to the sheer number of modules in their contracts.
But it also means itโs fairly simple to read and digest so I recommend you to dig in with your favorite AI. Here's a prompt to get started:
The Morpho team just released Morpho Midnight, a new fixed rate lending primitive, I want you to deeply digest the Whitepaper and GitHub repository and prepare to answer my questions.
Whitepaper: https://morpho.org/whitepapers/midnight-whitepaper.pdf
GitHub: https://github.com/morpho-org/midnight/tree/main









