hessTotal Number of Active Users
    Updated 2022-11-05
    with gns as ( select date(block_timestamp) as dates, origin_from_address, tx_hash, event_inputs:value/pow(10,18) as amt_in_usd
    from polygon.core.fact_event_logs
    where origin_function_signature = '0x9aa7c0e5'
    and origin_to_address in ('0xf8a140db8b05bec52c7e86d0d40d72f8e54fe559', '0xd8d177efc926a18ee455da6f5f6a6cfcee5f8f58'
    ,'0x65187fec6ecc4774c1f632c7503466d5b4353db1')
    and event_inputs:from = Origin_From_Address
    and event_name = 'Transfer')
    ,
    tokens as ( select '0x9D575a9bF57a5e24a99D29724B86ca021A2b0435' as token_address ,'ETH' as token_name, 18 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' as token_address ,'USDC' as token_name, 6 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0x82af49447d8a07e3bd95bd0d56f35241523fbab1' as token_address, 'WETH' as token_name , 18 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f' as token_address, 'WBTC' as token_name , 8 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1' as token_address, 'DAI' as token_name, 18 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0x17fc002b466eec40dae837fc4be5c67993ddbd6f' as token_address, 'FRAX' as token_name, 18 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0xf97f4df75117a78c1a5a0dbb814af92458539fb4' as token_address, 'LINK' as token_name, 18 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' as token_address, 'USDT' as token_name, 6 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0' as token_address, 'UNI' as token_name, 18 as decimal
    from arbitrum.core.dim_labels
    UNION
    select '0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a' as token_address, 'GMX' as token_name, 18 as decimal
    Run a query to Download Data