Skip to main content

Tenor SDK

The Tenor SDK is a TypeScript and React toolkit that builds the transactions for fixed-rate lending and borrowing flows on the Tenor and Morpho Midnight contracts. The user's wallet signs and submits each transaction. The SDK covers lend, borrow, repay, withdraw, collateral management, offers, renewal, and auto-renewal, exposed as a high-level ActionsBuilder and per-operation React hooks.

The SDK handles transaction assembly, approval routing across EOA, Safe and smart-account wallets, signature collection and simulation. Integrators supply the markets, offers and amounts.

Security reviews​

The SDK has been reviewed through a combination of manual and AI-assisted reviews by the following security firms:

  • Obsidian Audits: Best-effort manual review of the SDK, covering authorization flows, approval routing, signature handling, and bundle construction.
  • Octane Security: AI-driven code review run against the SDK codebase to surface vulnerability patterns, unsafe approval flows, and integration-layer mistakes.
  • Cantina Apex: AI-driven security review run against the SDK codebase to surface logic bugs, edge cases, and integration risks in the SDK code paths.

These reviews complement the security reviews of the Tenor smart contracts, focusing on the risks specific to the integration SDK: transaction assembly, approval routing, and wallet handling.