Risk in DeFi is rarely isolated. Protocols depend on each other’s tokens and prices; capital concentrates in a handful of wallets; a shock in one place propagates to others. Alterscope models these relationships as a knowledge graph and runs network analysis over it to surface risks that a per-asset view misses. The graph links protocols, pools, assets, and wallets through dependency, holding, and price relationships. The analyses below run on top of it.Documentation Index
Fetch the complete documentation index at: https://docs.alterscope.org/llms.txt
Use this file to discover all available pages before exploring further.
Contagion cascades
The cascade model answers: if this pool or asset takes a shock, what else is affected, and by how much? It propagates a shock outward across the graph’s dependency edges, dampening the impact at each hop:Concentration
Concentration measures how much of a pool sits in how few hands — a thin, concentrated holder base is a liquidity and exit risk. Alterscope computes the Herfindahl-Hirschman Index (HHI) over holder shares, alongside top-1% / top-5% / top-10% concentration and the largest holders:Communities
Alterscope detects communities — clusters of protocols and assets that are densely interconnected — using the Louvain community-detection algorithm over the graph. Communities reveal which protocols effectively rise and fall together, and each community surfaces its total-value share and whether it spans multiple chains. Community assignments are precomputed on a schedule (see staleness note below) and each response reports when it was last computed.Smart-money flow
The smart-money analysis tracks position changes by whale and labeled entities — wallets above a size or pool-share threshold — and classifies each move as entering, exiting, or holding. The intent is to surface where sophisticated capital is rotating before it shows up in aggregate metrics.Supporting network metrics
The graph also precomputes standard network-centrality metrics as node properties, used as inputs to the analyses above and available on graph endpoints:| Metric | What it captures |
|---|---|
| PageRank | Overall influence of a node in the dependency network. |
| Degree (in / out / total) | How many direct relationships a node has. |
| Weakly-connected components | Which nodes belong to the same connected region. |
| Betweenness | How often a node sits on paths between others — a bridge / chokepoint signal. |
Batch staleness. Graph metrics and community assignments are recomputed on a schedule (faster-moving metrics hourly, heavier ones every few hours), so they can lag live state by up to their refresh interval. Endpoints report the last-computed timestamp so you can see exactly how current a result is.