strawbettyMatic token that bridged by Hop
    Updated 2022-04-30

    with vol as (
    select * from ethereum_core.fact_event_logs
    where contract_address = LOWER('0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0')
    and event_name = 'Transfer'
    and block_timestamp >= '2022-01-01'
    and event_inputs:to = LOWER('0x22B1Cbb8D98a01a3B71D034BB899775A76Eb1cc2')
    ),
    txns as (
    select
    event_inputs:amount/1e18 as volume,
    *
    from ethereum_core.fact_event_logs
    where contract_address = LOWER('0x22B1Cbb8D98a01a3B71D034BB899775A76Eb1cc2')
    and event_name = 'TransferSentToL2'
    and block_timestamp >= '2022-01-01'
    and tx_hash in (select tx_hash from vol)
    )
    select
    block_timestamp::date as date,
    sum(volume) as matic_volume,
    sum(matic_volume) over (order by date asc rows between unbounded preceding and current row) as cum_matic_amount
    from txns
    group by date

    Run a query to Download Data