MoDeFiTop Depositors List
    Updated 2025-01-31
    with
    prices as (
    select * from (select date_trunc(day, hour) as day,
    TOKEN_ADDRESS, symbol, decimals,
    case when symbol in ('WBTC', 'WETH') then price else 1 end as price,
    row_number() over (partition by symbol order by hour desc) as rank
    from ethereum.price.ez_prices_hourly
    where TOKEN_ADDRESS in (
    '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
    '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',
    '0xdac17f958d2ee523a2206206994597c13d831ec7',
    '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
    '0x83f20f44975d03b1b09e64809b757c47f942beea')
    )
    where rank=1),



    aevo_deposits as (
    -- Arbitrum
    select BLOCK_TIMESTAMP, 'Arbitrum' as chain,
    DECODED_LOG:receiver as depositor, 'USDC' as symbol,
    DECODED_LOG:depositAmount/1e6 as depositAmount, depositAmount as usdAmount,
    TX_HASH
    from arbitrum.core.ez_decoded_event_logs
    where CONTRACT_ADDRESS='0x80d40e32fad8be8da5c6a42b8af1e181984d137c'
    and EVENT_NAME='TokensDeposited'
    and TX_STATUS='SUCCESS'
    union all
    select BLOCK_TIMESTAMP, 'Arbitrum' as chain,
    DECODED_LOG:receiver as depositor, 'USDC' as symbol,
    DECODED_LOG:depositAmount/1e6 as depositAmount, depositAmount as usdAmount,
    TX_HASH
    from arbitrum.core.ez_decoded_event_logs
    where CONTRACT_ADDRESS='0x7711c90bd0a148f3dd3f0e587742dc152c3e9ddb'
    and EVENT_NAME='TokensDeposited'
    Auto-refreshes every 3 hours
    QueryRunArchived: QueryRun has been archived