Architecture Overview
The MAAT system architecture comprises several layers, each responsible for specific protocol functions. We drew inspiration from Ethereum's layered architecture, which allows for internal changes within layers without affecting others. This approach offers significant improvements over monolithic structures, providing both flexibility and scalability.
We've built a similar system consisting of three distinct layers: the Off-chain Layer (data searching services), the Execution Layer (core smart contracts), and the Strategy Layer (strategy contracts that generate yield).
1. Off-chain Layer
Manages user interactions, data processing, and optimization workflows outside the blockchain.
MAAT DApp: The primary user interface enabling actions such as asset deposits, withdrawals, earnings monitoring, and analytics visualization.
Commander: Orchestrates interactions between smart contracts, handles asset allocation, and responds to blockchain events.
Math Engine: Mathematical models and machine learning algorithms (e.g., Random Forest, Gradient Boosting) to optimize deposit distributions, rebalancing, and withdrawal strategies.
Indexer: Aggregates and indexes on-chain data from multiple networks, providing real-time metrics like APY and TVL through structured APIs.
2. Execution Layer
Executes on-chain operations through smart contracts deployed across various networks.
Vault Contracts: core contracts that react on user actions and manage assets across strategies.
Periphery Contracts: contracts facilitating operations such as address registry, PPS calculations, and shares bridging for emergency cases.
3. Strategy Layer
Uses diverse yield-generation strategies and ensures optimal asset allocation across multiple protocols.
Strategy Contracts: unified proxy contracts for various yield strategies, including compounding, incentive-based, leveraged, and aggregator-integrated approaches, to maximize returns.
Incentive Controller: Automates the compounding of rewards by harvesting incentives, executing token swaps via OpenOcean, and reinvesting into strategies to enhance yield.
Last updated