Query editor
-- Amp Token Distribution-- Dune query 465058: https://dune.com/queries/465058-- From dashboard: https://dune.com/ampdotxyz/amp-token---- Top 10 AMP holders (by label; addresses sharing a label are combined) plus-- "All others". Labels come from the shared curated map (same list as the-- Amp Holders & Stakers query) with cex.addresses as fallback; unlabeled-- addresses show as shortened hex.WITH-- net AMP balance per address (single transfer scan, +to / -from)balances AS (SELECT f.holder AS address, SUM(f.amount) / 1e18 AS balanceFROM erc20_ethereum.evt_Transfer trCROSS JOIN UNNEST(ARRAY[ROW(tr."from", -CAST(tr.value AS int256)),ROW(tr."to", CAST(tr.value AS int256))]) AS f(holder, amount)WHERE tr.contract_address = 0xff20817765cb7f73d4bde2e66e067e58d11095c2AND f.holder <> 0x0000000000000000000000000000000000000000GROUP BY 1HAVING SUM(f.amount) > CAST(0 AS int256)),-- curated address labels (shared with the Amp Holders & Stakers query)label_map (addr, label) AS (VALUES(0x706d7f8b3445d8dfc790c524e3990ef014e7c578, '🥩 Flexa Capacity V2'),(0x5d2725fde4d7aa3388da4519ac0449cc031d675f, '🥩 Flexa Capacity V3'),(0xafcd96e580138cfa2332c632e66308eacd45c5da, 'Gemini: Storage Wallet'),(0x46f80018211d5cbbc988e853a8683501fca4ee9b, 'BTCTurk: Internal Wallet'),(0x8c54ebdd960056d2cff5998df5695daca1fc0190, 'BTCTurk: Hot Wallet'),(0x0548f59fee79f8832c299e01dca5c76f034f558e, 'Genesis Trading: OTC'),(0xf3b0073e3a7f747c7a38b36b805247b222c302a3, 'Crypto.com: Internal Wallet'),(0x75c80ce8fddfc61641bed16cd90c9123f0d9a020, 'Uniswap: V3 USDC-AMP (1.0%) Liquidity Pool'),(0x5e8fb38b9a04dbc8e6488136e69ab40df3b3012f, 'GnosisSafeProxy'),(0x48ec5560bfd59b95859965cce48cc244cfdf6b0c, 'Bitstamp: Multisig Wallet'),(0xf584f8728b874a6a5c7a8d4d387c9aae9172d621, 'Jump Trading'),(0x27fd43babfbe83a81d14665b1a6fb8030a60c9b4, 'WazirX'),(0x3c02290922a3618a4646e3bbca65853ea45fe7c6, 'Indodax'),(0xceb69f6342ece283b2f5c9088ff249b5d0ae66ea, 'Coinbase Custody: Hot Wallet'),(0x30741289523c2e4d2a62c7d6722686d14e723851, 'Huobi'),(0x15e86e6f65ef7ea1dbb72a5e51a07926fb1c82e3, 'SushiSwap: WETH-AMP Liquidity Pool'),(0x500a746c9a44f68fe6aa86a92e7b3af4f322ae66, 'Voyager: Hot Wallet'),(0x08650bb9dc722c9c8c62e79c2bafa2d3fc5b3293, 'Uniswap: V2 WETH-AMP Liquidity Pool'),(0xe74b28c2eae8679e3ccc3a94d5d0de83ccb84705, 'Wintermute Exploiter: Wallet'),(0xdb6fdc30ab61c7cca742d4c13d1b035f3f82019a, 'Coinspot'),(0x64c5f5e2a6a719818930f85fa56c2010fd0e5336, 'Binance US: Deposit'),(0x2407b9b9662d970ece2224a0403d3b15c7e4d1fe, 'CoinDCX'),(0x446b86a33e2a438f569b15855189e3da28d027ba, 'ERC1967Proxy'),(0x601a63c50448477310fedb826ed0295499baf623, 'CoinEx'),(0x91dca37856240e5e1906222ec79278b16420dc92, 'Indodax'),(0x674bdf20a0f284d710bc40872100128e2d66bd3f, 'Loopring: Default Deposit Contract'),(0x6a74941c1cf4151b3f15cdd84ee3abde713a999b, 'Bancor: AMP-BNT Liquidity Pool'),(0xff20817765cb7f73d4bde2e66e067e58d11095c2, 'Amp: AMP Token Contract'),(0xf02e86d9e0efd57ad034faf52201b79917fe0713, 'Alameda Research'),(0x649765821d9f64198c905ec0b2b037a4a52bc373, 'Bancor: Master Vault'),(0x4f24e16f76ed603a29bca952d454333c431f4e31, 'Gate.io: Deposit'),(0x1c727a55ea3c11b0ab7d3a361fe0f3c47ce6de5d, 'Uphold.com'),