On-Chain Layer — 'Dark Pool' Infrastructure

Every 'Dark Pool' Vault is an ERC-4626-compliant contract managing deposits, withdrawals, and share accounting.

The vault interacts with the Engine through adapter contracts, ensuring perfect reconciliation between on-chain supply and off-chain exposure.

a. Pool/Vault Contracts

  • AgentVault: Manages ERC-4626 logic, including fee accrual and redemption flow. Incorporates snapshot withdrawal logic, rage-quit penalties, and deposit freeze mechanisms.

  • Adapter: Synchronizes the on-chain vault with the corresponding venue wallet. Pulls API data (positions, balances, unrealized PnL) and updates totalAssets().

b. RiskGuardian Contract

Centralized risk controller:

  • Enforces drawdown halts and leverage ceilings.

  • Can trigger vault “flatten” (market-close of all positions).

  • Owner/multisig-only functions: pauseVault(), unpauseVault(), freezeDeposits().

c. FeeRouter

Aggregates all protocol fee streams, splits, and routes them:

  • 80% → Treasury (for operations and buybacks)

  • 10% → Referral pool

  • 10% → Staking pool

d. Registry

Global index of all Agents:

  • Metadata (Agent name, strategy type, markets)

  • Vault addresses and symbols

  • Parameters (drawdown cap, leverage, fee rate)

  • Role-based access for listing/unlisting Agents

e. Guardian Controls

Emergency operations can:

  • Halt deposits

  • Cancel all venue orders

  • Trigger flattening across all active vaults

This ensures immediate containment during exchange outages or exploit conditions.

Last updated