nasdfajskljexact revenue by month
    Updated 2025-03-06
    with addresses as (
    select lower(address) as address from (
    values
    ('0xc8c0e780960f954c3426a32b6ab453248d632b59') --old fee address
    ,('0x77777d91c0b8ec9984a05302e4ef041dccf77fee') --new fee address
    -- ,('0x0000000000002bdbf1bf3279983603ec279cc6df') --relay?

    ) as t(address)
    )
    ,excluded as (
    select lower(address) as address from (
    values
    ('0xc8c0e780960f954c3426a32b6ab453248d632b59') --old fee address
    ,('0x77777d91c0b8ec9984a05302e4ef041dccf77fee') --new fee address
    ,('0xf70da97812cb96acdf810712aa562db8dfa3dbef') --relay
    ,('0x85c153aae1f101af08151863306d9e0b823ea1b5') --my address, from one time sending relay funds to fee address
    ,('0x3a23f943181408eac424116af7b7790c94cb97a5') --socket


    ) as t(address)
    )
    ,data as (
    select
    block_timestamp::date as date,
    date_trunc('week', block_timestamp)::date as week,
    date_trunc('month', block_timestamp)::date as month,
    chain,
    amount_usd,
    origin_to_address
    from (
    select block_timestamp, amount_usd, origin_to_address, 'ETH' as chain
    from ethereum.core.ez_token_transfers
    where to_address in (select address from addresses)
    and origin_from_address not in (select address from excluded)
    and block_timestamp::date > '2024-02-26'
    and symbol not in ('Shiba 2.0', 'INNBC')
    Last run: about 2 months ago
    MONTH
    AMOUNT_USD
    1
    2025-02-01 00:00:00.000195244.58160435
    2
    2025-03-01 00:00:00.00025057.182818479
    3
    2024-09-01 00:00:00.000171813.654539926
    4
    2024-07-01 00:00:00.000297835.717577093
    5
    2024-06-01 00:00:00.000319053.380609219
    6
    2024-05-01 00:00:00.000424528.381137462
    7
    2024-04-01 00:00:00.000445265.850833408
    8
    2024-10-01 00:00:00.000280558.909961177
    9
    2024-11-01 00:00:00.000454692.735665465
    10
    2024-08-01 00:00:00.000230897.384649927
    11
    2025-01-01 00:00:00.000425890.418876739
    12
    2024-12-01 00:00:00.000467651.300167742
    12
    539B
    223s