πŸ›οΈ System Architecture

System Architecture

MALGIST is designed as a modular, non-custodial DeFi execution system built on the Mantle Network. The architecture separates strategy logic, execution, and user funds to maximize flexibility and security.


High-Level Overview

At a high level, MALGIST consists of four main layers:

User Interface
      ↓
Execution Orchestrator
      ↓
Universal Vault
      ↓
Protocol Adapters β†’ External DeFi Protocols

Each layer has a single responsibility and can evolve independently.


Core Components

1. User Interface (Frontend)

  • Strategy browsing & selection

  • Risk disclosure and confirmation

  • Deposit, withdraw, and monitoring actions

The UI does not custody funds and only triggers on-chain transactions.


2. Universal Vault (On-Chain)

  • Single vault used by all strategies

  • Holds user funds non-custodially

  • Executes strategy instructions at runtime

The vault reads strategy configuration and routes funds accordingly.


3. Strategy Configuration

  • Defines:

    • Allocation percentages

    • Target protocols

    • Risk level metadata

  • Stored in a structured, verifiable format

  • Read-only during execution

Strategies do not directly move funds.


4. Protocol Adapters

  • Standardized adapter interface

  • One adapter per external protocol (e.g. lending, DEX)

  • Translates generic vault instructions into protocol-specific calls

This design allows:

  • Easy protocol addition

  • Isolated risk per integration


On-Chain vs Off-Chain Responsibilities

On-Chain

  • Fund custody and execution

  • Strategy enforcement

  • Allocation logic

  • Fee calculation and distribution

  • Full state transparency

Off-Chain

  • UI rendering

  • Analytics and visualization

  • Indexing and caching (read-only)

  • Optional AI or recommendation engines (future)

Off-chain systems cannot move user funds.


Design Principles

  • Non-custodial: Users always control their assets

  • Composable: Strategies and adapters are modular

  • Minimal trust: Execution is deterministic and on-chain

  • Upgradeable by design: New adapters and strategies can be added without redeploying the core vault


➑️ Next: Smart Contract Architecture

Last updated