Morpho Midnight: fixed-rate credit and the onchain rates market
Onchain lending crossed twenty five billion dollars, and almost all of it floats. Morpho Midnight adds the missing half: fixed-rate, fixed-term credit priced by the market. Here is how it works, what it changes, and why it quietly opens a rates market onchain.
There are roughly twenty five billion dollars of active loans onchain, and more than ninety five percent of them float. No fixed rate, no maturity date. That design bootstrapped everything: tens of billions in deposits, thousands of markets, a curator industry pricing risk at scale. It is also the reason onchain credit stops at the edge of crypto. No treasurer funds a five year plan on a rate that reprices every block. No credit committee sizes a position it cannot date.
Morpho Midnight is the answer, and it is built at the primitive layer where it has to be. It is a noncustodial protocol for fixed rate, fixed term credit: isolated, immutable markets that mature on fixed calendar dates. It sits next to Morpho Blue, not on top of it. Two primitives, one network. Blue for variable rate and open term, Midnight for fixed rate and a date. Neither replaces the other, and capital moves between them. Immutability matters more here than anywhere, because a fixed term only holds if the rules cannot change mid term, and the core contracts cannot be upgraded by anyone, Morpho included.
How a fixed-rate loan works onchain
Set the machinery aside for a second. A floating loan has no end and no agreed price: you deposit, you earn whatever the pool pays that block, and you leave when you like. A fixed loan is the opposite. It has a date and a rate agreed at the start, and neither moves until that date arrives. Every other market calls the first one a savings account and the second one a term deposit, and runs both. Onchain only ever shipped the first.
Midnight expresses the fixed side as a unit that behaves like a zero coupon claim. You buy the unit at a discount today and redeem it at par at maturity. The discount is the rate, locked the moment you buy: pay ninety seven now, receive one hundred on the date, and the three is your fixed return, known in advance. Borrowing is the same trade run backwards, sell units against collateral, take the cash now, and buy them back at maturity or be liquidated. No utilization curve, no governance kink, no idle capital left in the contract. The price is the rate.
The rate becomes a price, not a formula
This is the part that changes the character of the thing. Blue prints a borrow rate from utilization: a function the protocol computes and both sides accept, moving every block. Midnight has makers publish offers, price and size, and takers fill them. The market clears where they meet, and the rate is implied by that price. A market print, not a protocol output. Quote it across maturities and onchain lending gets something it never had at the base layer: an observable term structure for secured credit.
The closest anchor in traditional markets is term repo: fixed rate, fixed term secured lending against posted collateral, with liquidation machinery behind it. Nothing here is risk free. Redemption at par is conditional on the borrower repaying or the collateral clearing. Dated, secured, priced credit is simply what makes it usable by the people who allocate the real money.
The curve is the product
No one designed the yield curve. It fell out of millions of borrowers and lenders naming a price for time, at every tenor, until the points formed a line every other instrument prices against. A pool has no tenors, so onchain lending never had a curve. Midnight prints the points. As markets fill across maturities, the prints form the curve, and the curve is the raw material everything downstream reads: swaps, structured credit, any dated cash flow.
Someone has to print those points, and none of the trades below can fill without them. Blue let curators sell risk selection. Midnight lets them sell the rate. Duration becomes the new curator skill: where on the curve to sit, and how hard to price it. Supply is the binding constraint in every fixed rate market, and whoever quotes first sets the curve the rest build on.
The curator becomes a bond desk
On Blue the curator's job reduced to two verbs, select and shuffle: pick the isolated markets that clear your risk bar, move depositor liquidity among them as utilization drifts. Portfolio construction had no liquidity profile, because every venue was open term and instantly exitable. The whole industry ran general collateral repo books and called them credit markets.
Midnight adds the dimension that was missing: a maturity ladder. The closest analogue is not a bond fund, it is a money market fund desk, the regime forged by liquidity crises. Blue is the floating repo sleeve at the short end, Midnight positions are the laddered paper, and the manager sets the policy: how much to hold liquid, what weighted average maturity to target, how much may mature on a single date. Inventory becomes rate setting. Quote tight to the curve while you sit below your target, skew up as you approach your liquidity floor and let the market pay you to keep going. Every fill is a requote. The headline yield is now an output, and the inputs are a curve and a liquidity profile.
Two ways to fail, and both will show up within a year. Overdeploy into fixed paper and the first redemption wave forces you to sell units through a thin secondary book, crystallizing the losses that hold to maturity accounting had politely deferred. Abstain and stay all floating and you forgo a real term premium, an implicit rate call dressed up as prudence: a savings account competing with a money market fund.
The most consequential output is not any single vault's return. It is the curve itself. A curve in contango, longer maturities paying more, is the healthy state: lenders taking a term premium, borrowers paying for certainty. Flattening signals fading conviction. Backwardation, the near dates clearing above the long end, is the tell that matters most: a scramble for term liquidity, stress in the collateral, a market bracing to deleverage, visible in a way a utilization curve never made legible.
The gate moves into the market
The industry answered institutional constraints by standing up separate permissioned instances beside the open protocol. Midnight puts the gate in the market parameters instead. The KYC gated market a bank needs and the open market a fund wants settle on the same immutable base. One primitive, every compliance regime, and the liquidity does not fork.
- Loan asset, collateral
- LLTV, oracle, maturity
- Enter gate
- Liquidator gate
One detail carries most of the institutional weight: the gate applies to liquidators too, so collateral only ever passes to approved hands, even in default. That is the compliance perimeter held intact at every step of the loan, open to settle to default, which is exactly what a permissioned repo desk has always required offchain and never had onchain.
Capital that works while it waits
An offer is a quote, not an escrow. Capital is sourced at settlement, so one budget can quote many markets and maturities at once. The maker callback extends it further: the capital sits earning in a Blue market until an offer fills, then is withdrawn and settled in the same transaction. Lend a hundred on Blue and quote it fixed on Midnight. A borrower takes fifty, the callback pulls exactly fifty, and the rest keeps earning.
The same mechanic is what makes quoting a whole curve safe rather than reckless. Offers backed by the same capital share one fill budget, so exposure is bounded by the budget, not by the sum of everything quoted. You can stand across the 7, 14, and 30 day markets on one book and never overcommit.
Why the term changes the trade
Predictability is the entry ticket for institutional allocation. Not necessarily a better rate, a knowable one. It shows up sharpest in the trade that already runs onchain: leveraged real world assets. Post a tokenized asset, borrow a stablecoin, redeploy into more of it. That loop only lives while the collateral out earns the borrow, which is why it runs on private credit at six percent and up, and barely touches treasuries at four, where a floating borrow can pin above the coupon and turn the carry negative mid trade.
A fixed rate does not invent a spread that is not there. It does two things a floating pool cannot. For the credit loop, it locks a positive carry at entry so a utilization spike cannot erase it. For the treasury position, it makes term financing predictable: a known holding funded to a known date at a known cost, the ordinary repo trade a floating rate could never price. Ladder the maturities and you are running asset liability management onchain.
What gets built on top
The primitive is dull on its own. What it unlocks is a stack of businesses that a floating pool could never carry. A permissioned repo desk, the deepest funding market offchain, with the compliance perimeter held even through default. Prime brokerage style margining, where a basket margins as one position, so a retail book of tokenized stocks and BTC finally borrows against its diversification instead of asset by asset. Compliant real world asset leverage, where the carry is locked at entry so a utilization spike cannot flip it mid trade. And fixed rate consumer products, a saver who locks a yield and a borrower whose payment cannot move, shipped straight into the tens of millions of users already sitting inside Coinbase and Robinhood, where Morpho is already the credit engine.
The deeper thing it opens is a rates market. A forward curve is not an endpoint, it is raw material. Every dated instrument in traditional finance references one: interest rate swaps, structured credit, the strips that decompose a bond into its separate cash flows. Onchain had none of that, because there were no tenors to reference. Midnight prints the tenors, so the layer above can finally exist. Term premium becomes a thing you trade, duration becomes a position, and the curve becomes the benchmark a whole rates complex is priced against.
Traditional markets industrialized exactly this move. When Volcker unanchored rates in 1979 and every duration book started bleeding, the answer was not to abandon terms, it was to build the machinery around them: the first swaps and Eurodollar futures in 1981, Treasury strips in 1985. Within a decade the rates complex was the largest market in the world. The curve came first, and the complex was built on top of it. Onchain gets to run the same play, with the primitive already shaped for it.
One clear boundary
Midnight prints a rate curve, and a rate curve is not yet a credit curve. Two positions clearing at the same rate can still carry loss profiles that differ by multiples, and pricing that difference, the loss axis, is the layer onchain credit still has to build. That is the frontier Midnight opens, not a gap it claims to close.
None of this floats free of a base. Every one of these markets is priced and settled in stablecoins, the dollars that became the rails onchain, and that base has only grown.
Every credit market that scaled did it on terms. Venice sold dated claims on its treasury in the 1100s. The railways were built on long dated paper. The American house is financed with a thirty year lock. The fixed leg is how strangers underwrite the future, and a floating only market can fund the present but not a plan. Variable rates took onchain lending to twenty five billion. Terms are how it reaches the rest.
Further reading
- Morpho Midnight and its whitepaper
- Morpho docs for Blue and the market primitives
- Morpho on DeFiLlama for live TVL and borrow data
What is Morpho Midnight?+
Morpho Midnight is a noncustodial protocol for fixed-rate, fixed-term credit onchain. Its markets are isolated, immutable, and mature on fixed calendar dates. It sits alongside Morpho Blue, which stays variable-rate and open-term, and capital moves between the two.
How is Morpho Midnight different from Morpho Blue?+
Blue is variable-rate and open-term, with the rate set by a utilization formula. Midnight is fixed-rate and fixed-term, with the rate set by the market: makers post offers, takers fill them, and the clearing price is the rate.
How is the interest rate set on Morpho Midnight?+
By the market, not a formula. A position is a unit that behaves like a zero-coupon claim: you buy it at a discount today and redeem it at par at maturity, and the discount is the rate, locked the moment you buy. Borrowing is the mirror, selling units against collateral.
Does Morpho Midnight support permissioned or KYC markets?+
Yes. The gate lives in the market parameters and is enforced in code, and it applies to liquidators too, so collateral only ever passes to approved hands, even in default. A KYC-gated market and an open market settle on the same immutable base.
Why does fixed-rate credit matter onchain?+
Predictability is the entry ticket for institutional allocation, and dated markets print a yield curve, the raw material for swaps, structured credit and any dated cash flow. A floating rate can fund the present but not a plan.