jackguyNFT-token-dash-1 copy copy copy copy
    Updated 2024-01-30
    -- forked from NFT-token-dash-1 copy copy copy @ https://flipsidecrypto.xyz/edit/queries/86638ee4-63b4-4e26-8b80-09910687f573

    -- forked from NFT-token-dash-1 copy copy @ https://flipsidecrypto.xyz/edit/queries/dd52b3cb-9155-4ca5-927d-7e0faacc0aa6

    -- forked from NFT-token-dash-1 copy @ https://flipsidecrypto.xyz/edit/queries/52c3fb30-3b47-48e9-8032-828861f0a877

    -- forked from NFT-token-dash-1 @ https://flipsidecrypto.xyz/edit/queries/587397d5-88b0-482d-8623-2ad6031ef252

    with tab1 as (
    SELECT
    date_trunc('hour', block_timestamp) as hour1,
    count(DISTINCT from_address) as swappers
    FROM ethereum.core.fact_transactions
    WHERE tx_hash in (
    SELECT
    DISTINCT tx_hash
    FROM ethereum.uniswapv3.ez_swaps
    where pool_address IN (
    lower('0x5ee84bed805df225ee23aec4160cc0bfcf1bd892'),
    lower('0xe72377ae353edc1d07f6c0be34969a481d030d19'),
    lower('0x882784c5807d5e2e4950ae2327ca5d9b56a1015a'),
    lower('0x92741be6adcb2722681925afce9af0a7306ce90f'),
    lower('0x4a382e0fb2abc4bc087d2f7953a4689ecbb96374'),
    lower('0xb17015d33c97a2caca73be2a8669076a333fd43d'),
    lower('0x01a8227d4e7c3068ad1000c97a059af5c5fa3476')
    )
    AND ( token0_symbol LIKE 'μAZUKI'
    OR token1_symbol LIKE 'μAZUKI' )
    AND BLOCK_TIMESTAMP > current_date - {{ past_days }}
    )
    GROUP BY 1
    ), tab2 as (
    SELECT
    date_trunc('hour', block_timestamp) as hour2,
    count(DISTINCT tx_hash) as swaps,
    sum(
    Last run: about 1 year agoAuto-refreshes every 6 hours
    HOUR1
    SWAPPERS
    HOUR2
    SWAPS
    SWAP_VOLUME_USD
    1
    2024-01-22 13:00:00.00012024-01-22 13:00:00.000184.18
    2
    2024-01-29 06:00:00.00012024-01-29 06:00:00.000114.15
    3
    2024-01-22 11:00:00.00012024-01-22 11:00:00.000130.84
    3
    193B
    12s