winnie-fsComparison: TVB vs. TVL I Scroll Network copy
    Updated 2023-10-19
    -- forked from tkvresearch / Comparison: TVB vs. TVL I Scroll Network @ https://staging.flipsidecrypto.xyz/tkvresearch/q/k8il3PkViuU_/comparison-tvb-vs.-tvl-i-scroll-network
    with P as(
    select
    price
    from
    ethereum.price.ez_hourly_token_prices
    where
    token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    order by
    hour DESC
    limit
    1
    ), -- ETH
    A as(
    select
    amount,
    eth_to_address as bridge,
    tx_hash,
    BLOCK_TIMESTAMP
    from
    ethereum.core.ez_eth_transfers
    union
    all
    select
    0 - amount,
    eth_from_address as bridge,
    tx_hash,
    BLOCK_TIMESTAMP
    from
    ethereum.core.ez_eth_transfers
    ),
    B as(
    select
    date_trunc('day', BLOCK_TIMESTAMP) as time,
    'ETH' as symbol,
    sum(amount) as amount,
    Run a query to Download Data