freemartianDebank - Deposit L2 Line
    Updated 2023-09-16

    select
    date_trunc('day', block_timestamp) as time,
    count(distinct from_address) as Depositors_Count,
    count(tx_hash) as Deposits_Count,
    sum(amount) as Deposits_Amount,
    (CASE
    when contract_address = '0xaf88d065e77c8cc2239327c5edb3a432268e5831' then 'USDC'
    when contract_address = '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9' then 'USDT'
    end) as Symbol,
    'Arbitrum' as Chain
    from arbitrum.core.ez_token_transfers
    where to_address = '0x40f480f247f3ad2ff4c1463e84f03be3a9a03e15'
    and contract_address in (
    '0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9',
    '0xaf88d065e77c8cc2239327c5edb3a432268e5831')
    and ORIGIN_FUNCTION_SIGNATURE = '0xa9059cbb'
    group by contract_address, chain, time


    UNION

    select
    date_trunc('day', block_timestamp) as time,
    count(distinct from_address) as Depositors_Count,
    count(tx_hash) as Deposits_Count,
    sum(amount) as Deposits_Amount,
    (CASE
    when contract_address = '0x7f5c764cbc14f9669b88837ca1490cca17c31607' then 'USDC'
    when contract_address = '0x94b008aa00579c1307b0ef2c499ad98a8ce58e58' then 'USDT'
    end) as Symbol,
    'Optimism' as Chain
    from optimism.core.ez_token_transfers
    where to_address = '0x824a2d0ae45c447caa8d0da4bb68a1a0056cadc6'
    and contract_address in ('0x7f5c764cbc14f9669b88837ca1490cca17c31607','0x94b008aa00579c1307b0ef2c499ad98a8ce58e58')
    and ORIGIN_FUNCTION_SIGNATURE = '0xa9059cbb'
    Run a query to Download Data