Skip to main content

DEX Instance Table

Description

Deployments of DEX protocols per network (e.g., Uniswap, Curve). Central registry for factory/router/NFPM addresses and cross-chain protocol analysis.

Schema

FieldTypeDescription
idSTRINGDeterministic ID (truncated MD5 of network_id, slug).
network_idSTRINGFK → network.id.
slugSTRINGCanonical DEX identifier (e.g., uniswap-v3, curve).
nameSTRINGHuman-readable name (e.g., Uniswap V3).
factory_addressSTRINGFactory contract creating pools.
subgraph_idSTRINGThe Graph subgraph ID for this DEX instance.
nfpm_addressSTRINGNon-Fungible Position Manager (V3-style DEXes).
ingested_atTIMESTAMPInsert time (UTC).

Example Queries

Find Uniswap V3 instances and their factories

SELECT n.name AS network, d.name AS dex, d.factory_address, d.nfpm_address
FROM `defi_prepared.dex_instance` d
JOIN `defi_prepared.network` n ON d.network_id = n.id
WHERE d.slug = 'uniswap-v3'
ORDER BY network;