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.
For the GraphQL API and the TypeScript SDK, see the API documentation.
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 market making.
Oracles
New Morpho-compatible oracle types built by Tenor to improve the robustness of 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 private vaults for institutional actors.
Midnight Gates
Gates that allowlist specific lenders or borrowers in a Midnight market and customize liquidation behavior with mechanisms such as grace periods.