adriaparcerisasSunloan deposits 2: Optimism
    with
    data as (
    select
    'ETH' as symbol,
    amount,
    amount_usd,
    block_timestamp,
    tx_hash
    from optimism.core.ez_eth_transfers
    where eth_to_address = lower('0xEF0B56692F78A44CF4034b07F80204757c31Bcc9')
    UNION
    select
    symbol,
    amount,
    amount_usd,
    block_timestamp,
    tx_hash
    from optimism.core.ez_token_transfers
    where to_address = lower('0xEF0B56692F78A44CF4034b07F80204757c31Bcc9')
    )
    SELECT
    trunc(block_timestamp,'day') as "Date",
    count(distinct tx_hash) as "# of payments",
    sum(amount_usd) as "Volume amount (USD)"
    from data where amount_usd is not NULL
    and amount<1e9
    and block_timestamp >=current_date-INTERVAL '{{number_of_months}} MONTHS'
    group by 1 order by 1 asc




    Run a query to Download Data