binhachonLido Rocket Pool Comparison
    Updated 2022-04-25
    with deposit_transaction as (
    select
    block_timestamp,
    to_address as address,
    'Rocket Pool' as symbol,
    amount
    from ethereum_core.ez_token_transfers
    where block_timestamp >= getdate() - interval'3 months'
    and contract_address = '0xae78736cd615f374d3085123a210448e74fc6393'
    and from_address = '0x0000000000000000000000000000000000000000'
    union all
    select
    block_timestamp,
    from_address as address,
    'Rocket Pool' as symbol,
    ETH_value as amount
    from ethereum_core.fact_transactions
    where block_timestamp >= getdate() - interval'3 months'
    and to_address = '0xdcd51fc5cd918e0461b9b7fb75967fdfd10dae2f'
    and origin_function_signature = '0x3876de3a'
    union all
    select
    block_timestamp,
    to_address as address,
    'Lido' as symbol,
    amount
    from ethereum_core.ez_token_transfers
    where block_timestamp >= getdate() - interval'3 months'
    and contract_address = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'
    and from_address = '0x0000000000000000000000000000000000000000'
    )
    select
    date_trunc('week', block_timestamp) as time,
    symbol,
    sum(amount) as weekly_deposit,
    avg(amount) as avg_deposit,
    Run a query to Download Data