rahoAddress Age Stats - Stg
    Updated 2022-11-21
    -- Stargate Voters Wallet Age
    -- Missing Fantom Chain

    with av as (
    select
    proposal_start_time,
    proposal_title,
    voter,
    space_id
    from Ethereum.core.ez_snapshot
    where space_id = 'stgdao.eth'
    ),

    eth as (
    select
    date_trunc('day', block_timestamp) as create_date,
    cast(getdate() as date) as cur_date,
    datediff('day', create_date, cur_date) as days_old,
    nonce,
    from_address
    from ethereum.core.fact_transactions
    inner join av on lower(voter) = lower(from_address)
    where nonce = 0
    ),

    arb as (
    select
    date_trunc('day', block_timestamp) as create_date,
    cast(getdate() as date) as cur_date,
    datediff('day', create_date, cur_date) as days_old,
    nonce,
    from_address
    from arbitrum.core.fact_transactions
    inner join av on lower(voter) = lower(from_address)
    where nonce = 0
    Run a query to Download Data