Skip to main content

Smart contract documentation

Technical documentation for the Tenor smart contracts. Tenor extends the Morpho protocol (Morpho Blue, Morpho Midnight, and Morpho Vaults V2) to enable additional functionality.

To lend, borrow or set up passive quoting on Morpho from your own systems without building these calls yourself, see the Tenor API.

Morpho Midnight

Overview of Morpho Midnight's markets, offers, and callback model, plus how Tenor extends it with custom callbacks and gates.

Callbacks

Stateless contracts invoked during a Morpho Midnight take. Callbacks enable migrations between vaults, Morpho Blue, and Midnight.

Ratifiers

Ratifiers to pre-approve strategies on Morpho Midnight such as auto-renewal and passive quoting.

Oracles

Morpho-compatible oracle types built by Tenor that add a validation step to oracles used in Morpho Blue and Midnight markets.

Vault V2 gates

Gates that allowlist which addresses can deposit into a vault and receive shares, enabling permissioned vaults, for example for institutional users.

Midnight gates

Gates that allowlist specific lenders or borrowers in a Midnight market and customize liquidation behavior with mechanisms such as grace periods.

Addresses

Deployed contract addresses for Tenor and Morpho.