RamaharInflow vs $OP token price
    Updated 2022-10-02
    with token_price AS (
    SELECT DATE(hour) as dt,
    avg(price) as op_token_price
    FROM optimism.core.fact_hourly_token_prices
    WHERE symbol = 'OP'
    GROUP BY 1),
    Ethereum_data as (
    select
    DATE(block_timestamp) as dayz,
    tx_hash,
    origin_from_address,
    amount_usd
    from ethereum.core.ez_eth_transfers
    where origin_to_address = '0x25ace71c97b33cc4729cf772ae268934f7ab5fa1'),
    transfer_data as (
    select
    DATE(block_timestamp) as dayz,
    tx_hash,
    origin_from_address,
    amount_usd
    from ethereum.core.ez_token_transfers
    where origin_to_address = '0x25ace71c97b33cc4729cf772ae268934f7ab5fa1'),

    L2toL1 as (
    select * from Ethereum_data
    union all
    select * from transfer_data),

    swaps AS (
    -- Sushiswap
    (SELECT
    'Sushiswap' as platform,
    DATE(block_timestamp) as dt,
    tx_hash,
    Run a query to Download Data