Technical Documentation
Technical documentation for Tenor smart contracts, API, and SDK. Tenor extends the Morpho protocol (Morpho Blue, Morpho Midnight, and Morpho Vaults V2) to enable additional functionality.
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 whitelist which addresses can deposit into a vault and receive shares, enabling private vaults for institutional actors.
Midnight Gates
Gates that whitelist specific lenders or borrowers in a Midnight market and customize liquidation behavior with mechanisms such as grace periods.
API
GraphQL API for querying markets, positions, offers, and portfolio analytics, plus available offers for routing optimization.
SDK
TypeScript library for building and executing transactions. React hooks, approval management, simulation, and Safe wallet support.