# Flow Diagrams

<figure><img src="/files/y4BVA8hYWfG6VkD63Seu" alt=""><figcaption></figcaption></figure>

````mermaid
```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

```
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://metapool.bloklab.fi/basics/flow-diagrams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
