Security696 words3 min decode

Morpho Midnight completes formal verification of 200+ contract rules

Certora and Morpho verified more than 200 rules across four lending areas, strengthening assurance around an immutable protocol that reached over $200 million in deposits.

Morpho Midnight completes formal verification with Certora
WitnessMorpho Midnight completes formal verification with CertoraPexels / pixabay

Outputs

  1. Morpho Midnight launched in July 2026 with fixed rates and fixed terms on EVM chains.

  2. Formal verification covered four areas, more than 40 invariants and more than 200 rules.

  3. The protocol held over $200 million in deposits as of November 24, 2026.

  4. Morpho Blue launched in 2024 and had gathered more than $17 billion in deposits.

  5. New Vault adapters form part of Midnight's buildout for institutional-grade credit.

According to Certora’s research findings, Morpho and Certora completed formal verification of more than 200 contract rules across four areas of Morpho Midnight, which held over $200 million as of November 24, 2026.

Midnight went live in July 2026 as a fixed-rate, fixed-term credit protocol deployed on EVM chains. Once deployed, its code cannot be patched, so any bug that ships remains in the deployed system. That immutability gives the verification direct operational weight rather than leaving it as a routine post-launch review.

What did Certora verify?

The work covered four areas:

  • Accounting
  • Solvency
  • Liquidations
  • Fee handling

The engagement covered more than 40 invariants, each a condition that must remain true regardless of user actions, such as the protocol never owing more than it holds. Those invariants translated into more than 200 individual rules, each stating how the contracts should behave under specified conditions.

Formal verification takes a different route from the audit work common across decentralized finance. Engineers state the properties the code must always satisfy, then mathematical proofs establish that those properties hold across every possible state. Unlike scenario testing, the method does not sample inputs for the properties it covers.

Most DeFi security work relies on audits, in which skilled reviewers read code, probe for weaknesses and report their findings.

Why Morpho chose proofs

Morpho’s in-house team and Certora engineers conducted the verification together. According to the findings, the process began with development rather than arriving after the code was finished, giving both teams an opportunity to shape the contracts and the properties under examination.

Morpho framed the effort around scale. In its own write-up, the team described protocols on immutable contracts as “meant to hold billions, and potentially trillions, of dollars in deposits.”

The team also cited artificial intelligence as a new source of pressure, arguing that AI systems are improving at finding and exploiting edge cases. That development raises the standard for how thoroughly engineers need to check code.

The proof still has a defined boundary. It covers every possible state only for properties that someone specified, so the quality of the specification matters as much as the mathematical proof. Verification can establish that a stated rule holds; it cannot validate rules the team never wrote.

How does Midnight differ from Morpho Blue?

Midnight is not Morpho’s first lending product. Its predecessor, Morpho Blue, launched in 2024 and had gathered more than $17 billion in deposits, according to the research findings.

Midnight differs most clearly in its rate structure. It offers fixed rates over fixed terms on EVM chains, whereas floating rates dominate most on-chain lending. The result is a credit product with a stated rate and maturity rather than a rate that resets with the wider market.

Midnight has also gained supporting infrastructure through new Vault adapters. The research describes these adapters as part of a broader buildout aimed at institutional-grade credit use, extending the protocol beyond its core fixed-rate deployment.

The deposit figures show adoption without erasing the scale gap. Midnight’s $200 million-plus balance remains a fraction of Morpho Blue’s more than $17 billion, even though the newer protocol reached the former threshold within months of its July 2026 launch.

What does this change for depositors and lenders?

For depositors and lenders, the change is stronger documented assurance over the accounting, solvency, liquidation and fee rules that govern an immutable deployment. Certora’s work gives Morpho and other reviewers a common, testable description of the contract behavior on which the protocol relies.

It does not mean Midnight has eliminated every exploit or specification failure. The proof remains bounded by the more than 40 selected invariants, and the protocol cannot repair a shipped defect through a patch. The practical benefit is narrower and more concrete: greater confidence in the properties the team chose to formalize.

Certora’s findings did not identify an immediate market reaction, such as a token launch or a shift in total value locked.

As new Vault adapters enter use, their treatment of the verified accounting, solvency, liquidation and fee properties will determine whether that assurance extends across Midnight’s broader credit infrastructure.

via Crypto Briefing (Source)

More from Nathan Brooks

Nathan Brooks

Show full bio

Market editor covering money, funding and market shifts around crypto and web3 industry at Mempool Brief.

1,848 articles