Morpho Midnight completes formal verification with Certora
The fixed-rate lending protocol used mathematical proofs to check its immutable contracts, with more than 40 invariants and over 200 rules
Morpho Midnight, the fixed-rate, fixed-term credit protocol that went live in July 2026, has put its smart contracts through formal verification with security firm Certora.
The protocol’s code is immutable. Once deployed, it cannot be patched, so any bug that ships is a bug that stays.
As of November 24, 2026, Midnight held over $200 million in deposits, according to the research findings.
What Certora actually checked
Most DeFi security work relies on audits. Skilled reviewers read the code, probe for weaknesses, and report what they find.
Formal verification takes a different route. Engineers write down properties the code must always satisfy, then use mathematical proofs to check those properties hold across every possible state.
For Midnight, the work spanned four core areas: accounting, solvency, liquidations, and fee handling.
The engagement covered more than 40 invariants. An invariant is a rule that must remain true no matter what users do, such as the protocol never owing more than it holds.
Those invariants translated into more than 200 individual rules. Each rule is a specific, checkable statement about how the contracts should behave.
The crypto and markets news you actually need—every morning.
Daily. Free. Join 34,000+ readers across crypto, finance, and policy.
Morpho’s in-house team and Certora engineers worked on the verification together. According to the research findings, the process was built in from the start of development rather than bolted on after the code was written.
Why Morpho is leaning on math
Morpho framed the effort around scale. In its own write-up, the team described protocols on immutable contracts that are meant to hold billions, and potentially trillions, of dollars in deposits.
Morpho also pointed to a newer pressure: artificial intelligence. The team argued that AI systems are getting better at finding and exploiting edge cases, which raises the bar for how thoroughly code needs to be checked.
Formal verification fits that brief. It does not sample scenarios, it reasons about all of them, at least for the properties that were specified.
That last caveat is worth keeping in mind. A proof only covers the rules someone thought to write, so the quality of the specification matters as much as the proof itself.
Background: from Morpho Blue to Midnight
Midnight is not Morpho’s first lending product. Its predecessor, Morpho Blue, launched in 2024 and has gathered more than $17 billion in deposits, according to the research findings.
The key difference is the rate structure. Midnight offers fixed rates over fixed terms, deployed on EVM chains, rather than the floating rates that dominate most onchain lending.
Midnight has also been gaining supporting infrastructure. The research findings point to new Vault adapters built for the protocol, part of a broader buildout aimed at institutional-grade credit use.
What this means
The most direct read is on trust. Reaching more than $200 million in deposits within a few months of a July 2026 launch suggests users are willing to park real money in the protocol.
Still, $200 million is a fraction of the more than $17 billion sitting in Morpho Blue.
The research findings did not identify any immediate market reaction to the announcement, such as token launches or shifts in total value locked.
Disclosure: This article was edited by Estefano Gomez. For more information on how we create and review content, see our Editorial Policy.

