Metapool
  • Welcome
  • Getting Started
    • Quickstart
    • Overview
    • Architecture
  • Basics
    • Features
    • How to Implement a Hook
    • Custom Hook Providers
    • Premium Services Powered by Metapool Mechanics
    • Flow Diagrams
    • Flow Details
    • Calculating Reputations with Brevis
    • PoC Tokenomics
    • Tech Stack
    • References
Powered by GitBook
On this page
  1. Basics

Flow Diagrams

PreviousPremium Services Powered by Metapool MechanicsNextFlow Details

Last updated 7 months ago

```mermaid
flowchart TD
    subgraph Uniswap V4 Pool
        B[Liquidity Pool]
        C[Reputation Hook Contract]
    end

    subgraph Reputation System
        D[MetaPool Library]
        E[Reputation Logic Contract Created via 1167 Proxy]
        F[Brevis ZK Computation]
        G[Reputation Oracle ERC1155]
    end

    subgraph Security Layer
        H[EigenLayer]
    end

    subgraph Oracle Services
        I[Chainlink Automation]
    end

    subgraph Custom Hooks
        J[HookS -Custom Hook Providers]
    end

    A((User)) -- Provides Liquidity / Trades --> B
    B -- Managed by --> C
    C -- Creates/Manages --> E
    C -- Sends Pool Data --> D
    D -- Collects Data --> E
    E -- Queues User/Pool Data --> I
    I -- Triggers Batch Process --> E
    E -- Sends Processing Request --> G
    G -- Registers/Validates Pools --> E
    G -- Emits Task Request --> F
    F -- Validates/Processes Request --> G
    F -- Provides ZK Proof --> G
    G -- Updates Reputation Tokens --> A
    G -- Updates pRO/RO Tokens --> H
    H -- Mints/Burns pRO/RO Tokens --> A
    G -- Manages Collateral Decay/Slashing --> H
    H -- Restakes Collateral --> G
    G -- Payments with RO Tokens --> J
    J -- Provides Custom Hook Services --> C

```