Skip to content

suzaku-network/suzaku-core

Repository files navigation

Suzaku Core

Core smart contracts for the Suzaku Protocol - a restaking and validation orchestration platform for Avalanche L1s.

Table of Contents

Overview

Suzaku enables Avalanche L1 builders to decentralize their networks by orchestrating relationships between operators, curators (delegators), and stakers. The protocol combines native token staking with restaking of high‑quality collateral assets (e.g. stablecoins, liquid staking tokens), allowing L1s to adopt flexible security models.

Suzaku Core is a fork of Symbiotic Core, adapted for Avalanche L1 validation. While maintaining Symbiotic's delegation/vault patterns, Suzaku has been reworked to integrate Avalanche's ICM (Interchain Messaging) and validator management infrastructure, shifting from generic network security to L1‑centric validation orchestration.

For detailed protocol information, see the Protocol Overview.

Architecture

The protocol consists of modular components that work together to enable flexible L1 security:

graph TB
    subgraph "Suzaku Core"
        MW[AvalancheL1Middleware<br/>Security Module]
    end
    
    subgraph "Suzaku Library"
        BVM[BalancerValidatorManager]
    end
    
    subgraph "ICM Contracts"
        VM[ValidatorManager v2.1.0]
    end
    
    subgraph "Avalanche P-Chain"
        PC[P-Chain<br/>Validator Set]
    end
    
    MW -->|"implements<br/>ISecurityModule"| BVM
    BVM -->|"owns"| VM
    VM <-->|"ICM messages"| PC
    
    MW:::middleware
    BVM:::balancer
    VM:::icm
    PC:::pchain
    
    classDef middleware fill:#e1f5e1,stroke:#4caf50,stroke-width:2px
    classDef balancer fill:#e3f2fd,stroke:#2196f3,stroke-width:2px
    classDef icm fill:#fff3e0,stroke:#ff9800,stroke-width:2px
    classDef pchain fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px
Loading

Key Components:

  • Vaults & Delegation: ERC4626-style vaults with epoch-based withdrawals
  • Middleware: Security module managing validators and stake allocation
  • Registries: Track L1s, operators, and vaults
  • Rewards: Epoch-based distribution with multi-collateral support

Development

Prerequisites

Installation

# Clone the repository
git clone https://github.com/suzaku-network/suzaku-core.git
cd suzaku-core

# Install dependencies
forge install

# Build contracts
forge build

Testing

# Run all tests
forge test

# Run specific test file
forge test --match-path test/path/to/Test.t.sol

# Run with gas reports
forge test --gas-report

# Run with verbosity
forge test -vvv

Deployment

Check Suzaku Deployer for information on how to deploy different Suzaku Core contracts depending on your use case.

Documentation

Security

This codebase has undergone security audits:

  • Cyfrin Audit (baseline commit 7381169)
  • Current implementation includes post-audit fixes and improvements

Audit reports can be found in the audit/ directory.

Inspiration & Acknowledgments

Suzaku Core is a fork of Symbiotic Core, adapted for the Avalanche ecosystem. The protocol inherits Symbiotic's vault architecture, delegation patterns, and operator registry concepts, while introducing significant modifications for Avalanche L1 validation.

Additional inspiration:

  • Eigenlayer: Restaking concepts and security models

Major Modifications from Symbiotic

  • L1-Specific: Secures Avalanche L1s instead of generic Networks - each L1 must correspond to an existing Avalanche L1 converted via ConvertSubnetTx
  • Middleware Layer: Introduces AvalancheL1Middleware as a security module implementing ISecurityModule for integration with BalancerValidatorManager
  • ICM Integration: Deep integration with Avalanche's Interchain Messaging (ICM) and ValidatorManager v2.1.0 for P-Chain communication
  • Epoch-Based Rewards: Custom rewards distribution system based on validator uptime tracking
  • Collateral Classes: Multi-collateral support with decimal validation and weight-based distribution (notably modified in middleware and rewards)
  • No Common Contracts: Doesn't use Symbiotic's common contracts standardization
  • Non-Migratable Vaults: Vaults are upgradeable via proxy pattern but not migratable between implementations

License

Dual-licensed under MIT and AGPL-3.0.

Links

About

Core contracts of the Suzaku protocol

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published