Hub & Spoke

Peridot uses a Hub & Spoke architecture to connect users from any blockchain to a unified lending and investment engine.

This design allows us to:

  • Centralize core logic (interest rates, collateral management, liquidations, and dual investments)

  • Decentralize user interaction across multiple blockchains

  • Maintain accurate accounting on a single high-performance chain

  • Enable advanced products like dual investment strategies with cross-chain accessibility

The architecture is both scalable and secure, enabling low-latency cross-chain operations using Axelar's proven General Message Passing infrastructure.

The Hub

The Hub serves as the protocol's control center where all core operations occur:

  • Accounting & State Management: All user positions, deposits, and borrows are tracked centrally

  • Interest Rate Calculations: Dynamic interest accrual based on real-time utilization

  • Risk Management: Liquidations and collateral verification handled uniformly

  • Oracle Integration: Chainlink price feeds for accurate asset valuations

  • Dual Investment Engine: Advanced investment products and settlement logic

  • Liquidity Pools: Concentrated pToken markets (pUSDC, pETH, pWBTC, etc.)

The Spokes

Spoke chains are lightweight user interfaces where users can seamlessly:

  • Supply Assets: Deposit collateral that's automatically transferred to hub liquidity pools

  • Borrow Funds: Access unified hub liquidity from any supported chain

  • Manage Positions: Monitor health factors and manage risk across chains

  • Access Dual Investments: Create advanced positions without leaving their preferred chain

Cross-Chain Execution Flow

Supply Example:

  1. User deposits USDC on Arbitrum via PeridotSpoke contract

  2. Axelar Gateway receives tokens and cross-chain message

  3. PeridotHubHandler on BNB Chain receives assets and payload

  4. Hub contract mints pUSDC tokens representing the user's deposit

  5. User immediately starts earning interest on their supplied assets

Borrow Example:

  1. User initiates borrow request on Arbitrum

  2. Message sent via Axelar (no tokens transferred initially)

  3. Hub validates collateral and processes borrow against user's position

  4. Borrowed assets sent back to user's Arbitrum wallet via Axelar

  5. Interest begins accruing on the borrowed amount

Key Benefits

🔧 Modular Expansion: Easily add new chains without reworking core lending logic or dual investment systems.

🎯 Centralized Logic: Eliminates inconsistencies and synchronization issues across chains while maintaining decentralization where it matters.

💧 Unified Liquidity: Capital supplied on any chain powers borrowing opportunities across all supported networks.

🛡️ Safer Operations: No race conditions or cross-chain arbitrage issues - all risk management handled centrally with proven mechanisms.

Advanced Products: Dual investment strategies and sophisticated risk management available to users on any supported chain.

This Hub & Spoke model provides the foundation for a truly unified DeFi experience that scales across chains without compromising on security or functionality.

Last updated