AntonidasCurated-DataDelay
    Updated 2024-08-21
    -- forked from c07b21ae-40dc-4c88-b807-7d493e4adadf
    with
    raw_data as (
    select
    'aave' as block_chain,
    datediff(
    'minute',
    max(block_timestamp),
    current_timestamp()
    ) as data_delay_in_minutes,
    60 as timing_cutoff
    from
    ethereum.aave.ez_deposits
    where
    block_timestamp > current_date - 7
    union
    select
    'chainlink' as block_chain,
    datediff(
    'minute',
    max(block_timestamp),
    current_timestamp()
    ) as data_delay_in_minutes,
    60 as timing_cutoff
    from
    ethereum.chainlink.ez_oracle_feeds
    where
    block_timestamp > current_date - 7
    union
    select
    'compound' as block_chain,
    datediff(
    'minute',
    max(block_timestamp),
    current_timestamp()
    ) as data_delay_in_minutes,
    QueryRunArchived: QueryRun has been archived