Technical Architecture

Thesauros is built on a robust three-layer architecture that separates concerns between on-chain execution, off-chain computation, and automation logic.

┌─────────────────────────────────────────┐
│      Smart Contract Layer (On-chain)    │
│   ERC-4626 Vaults + Multi-sig Security  │
└─────────────────┬───────────────────────┘

┌─────────────────┴───────────────────────┐
│   Data Intelligence Layer (Off-chain)   │
│  PSO Engine + APR Analytics             │
└─────────────────┬───────────────────────┘

┌─────────────────┴───────────────────────┐
│     Automation Engine (Backend)         │
│  Proposer → Approver → Executor System  │
└─────────────────────────────────────────┘

Smart Contract Layer

Core Components:

  • ERC-4626 Vaults: Industry-standard tokenized vaults (full DeFi composability)

  • Strategy Contracts: Execute rebalancing logic and interact with lending protocols

  • Multi-sig Security: All rebalancing operations require multiple approvals

  • Emergency Controls: Pause mechanisms and withdrawal safeguards

Key Benefits:

  • Full transparency: all allocations visible on-chain

  • Non-custodial: users retain ownership of their assets

  • Auditable: all transactions permanently recorded

Data Intelligence Layer

Optimization Engine:

  • Runs Particle Swarm Optimization algorithms to find optimal allocations

  • Simulates thousands of potential portfolio configurations

  • Uses local blockchain forks (Hardhat) to model protocol behavior accurately

  • Provides results via secure internal API

Market Analytics:

  • Real-time APR aggregation from integrated protocols

  • Historical performance tracking

  • Liquidity depth analysis

  • Risk metric calculations

Why Off-chain: Complex mathematical optimization would be prohibitively expensive on-chain. By computing off-chain and only submitting results for on-chain validation and execution, Thesauros achieves both sophistication and cost-efficiency.

Automation Engine

Multi-Approval Security Architecture:

This distributed approval architecture ensures no single point of failure can execute unauthorized rebalancing.

Security Features:

  • Service Isolation: Each service runs independently with separate wallets

  • Independent Validation: Approver independently verifies Proposer's work

  • Threshold Signatures: Requires multiple approvals before execution

  • Rate Limiting: Prevents rapid successive rebalancing

  • Fail-safes: Automatic circuit breakers if anomalies detected


Last updated