Query editor
-- Number & % of $HMX & $esHMX tokens staked (vs. circulating supply)-- Number & % of $esHMX tokens being vested (vs. circulating supply)-- Number & % of HMX tokens in Uniswap LP-- Number & % of HMX tokens in wallets-- HMX = 0x83d6c8C06ac276465e4C92E7aC8C23740F435140-- esHMX = 0x8a011EF14a92AA37cE82A4c95004a70730b6AC38WITH non_circ_address(address, category) as (SELECT *-- dune.com/queries/2950522FROM query_2950522),pool_addresses(address, hmx_index) AS (VALUES(0x05bbaaa020ff6bea107a9a1e06d2feb7bfd79ed2, 1), -- HMX/ETH: HMX is token1(0x18d8f4cfe249748b1e18f09d512219e610f357a1, 0) -- HMX/USDC: HMX is token0),tokens(address, symbol) AS (VALUES(0x83d6c8C06ac276465e4C92E7aC8C23740F435140, 'HMX'),(0x82aF49447D8a07e3bd95BD0d56f35241523fBab1, 'WETH'),(0xaf88d065e77c8cC2239327C5EDb3A432268e5831, 'USDC')),complete_date as (SELECT DISTINCT date_trunc('day', minute) as timeFROM prices.usdWHERE minute >= timestamp '2023-05-29 00:00' -- first staking timestamp),------------------------------ C I R C. S U P P L Y ------------------------------hmx_non_circ_amt as (SELECT time,SUM(non_circ_supply_amt) OVER (ORDER BY time) as non_circ_supply_amt,date_diff('day', time, lead(time, 1, timestamp '9999-12-31') over (order by time)) as days_till_next_chgFROM (SELECT date_trunc('day', evt_block_time) as time,sum(non_circ_supply_chg) as non_circ_supply_amtFROM (SELECT evt_block_time, cast(t.value as double) / 1e18 as non_circ_supply_chgFROM erc20_arbitrum.evt_Transfer tWHERE to IN (SELECT address FROM non_circ_address)AND contract_address = 0x83d6c8C06ac276465e4C92E7aC8C23740F435140 -- HMXUNIONSELECT evt_block_time, -cast(t.value as double) / 1e18 as non_circ_supply_chgFROM erc20_arbitrum.evt_Transfer tWHERE "from" IN (SELECT address FROM non_circ_address)AND contract_address = 0x83d6c8C06ac276465e4C92E7aC8C23740F435140 -- HMX)GROUP BY 1)),raw_circ_supply as (SELECT time,SUM(mint_amt) OVER (ORDER BY time) as raw_circ_supply,10000000 as tot_supply,date_diff('day', time, lead(time, 1, timestamp '9999-12-31') over (order by time)) as days_till_next_mintFROM (SELECT date_trunc('day', evt_block_time) as time,