Skip to main content

Tenor Adapter

The TenorAdapter is a Bundler3 adapter that enables batching multiple Tenor operations into a single atomic transaction.

Summary

  • Extends CoreAdapter from Morpho's Bundler3 system
  • Provides passthrough functions for:
    • Rolling positions (both Morpho V2 to Morpho V2 rolling and Morpho V2 to V1 rolling)
    • Setting/clearing user roll parameters
    • Taking lending offers on Morpho V2
    • Repaying debt and managing collateral
  • Handles callbacks from Morpho V2 and roller contracts
  • Enables complex multi-step operations without requiring multiple transactions
  • Ensures callbacks maintain proper security by validating sender addresses

Supported Operations

  • morphoV2Take: Accept lending offers
  • morphoV2Repay: Repay debt (supports max value for full repayment)
  • morphoV2SupplyCollateral: Add collateral to positions
  • morphoV2WithdrawCollateral: Remove collateral
  • morphoV2Withdraw: Withdraw from obligations
  • Parameter management for both roller types