Skip to main content

Tenor smart contracts

The Tenor smart contracts extend Morpho Midnight with additional capabilities, grouped into callbacks, ratifiers, and gates. See the developer documentation for a full breakdown.

Most Tenor smart contract source files are source-available under the Business Source License 1.1 (BUSL-1.1). The Oracle with Validation contracts and the contract interfaces are licensed under GPL-2.0-or-later.

The contracts have undergone security reviews from security firms and independent researchers, and are covered by an active bug bounty offering up to $200,000 for critical findings. See Bug bounty for details.

Design principles​

Tenor follows the same design philosophy as Morpho: keep the core minimal and unopinionated, and push opinionated logic (rate policies, renewal rules, gating and callbacks) into periphery contracts that users opt into. The Tenor contract code cannot be upgraded once deployed, which keeps the trusted surface small. Tenor can pause certain optional functions and holds fee parameters that are switched off. Periphery contracts can be pausable; a pause applies only to the positions that use the paused contract. See Pausable functions for the list.

The same opt-in model bounds the impact of any periphery contract. Gates apply only to the markets and vaults that set them, and callbacks and ratifiers act only on the positions that invoke them. Behavior added by one contract does not apply to markets or positions that do not use that contract.