alitaslimiLiquidations
    Updated 2024-10-10
    with transactions as (
    select
    * -- block_number,
    -- block_timestamp,
    -- tx_hash,
    -- contract_address,
    -- event_index,
    -- platform,
    -- liquidator,
    -- borrower,
    -- protocol_market,
    -- debt_token,
    -- debt_token_symbol,
    -- collateral_token,
    -- collateral_token_symbol,
    -- amount,
    -- amount_usd
    from
    base.defi.ez_lending_liquidations
    -- arbitrum.defi.ez_lending_liquidations
    )
    select
    liquidator,
    sum(amount_usd) as volume
    from
    transactions
    -- where
    -- tx_hash = '0x476729ee24fe7957c387415380cde2c1281c449994df66bcb2009147a4ee4926' -- select
    -- block_timestamp::date as date,
    -- sum(amount_usd) as volume
    -- from
    -- transactions
    -- where
    -- block_timestamp::date between current_date - 30 and current_date - 1
    group by
    liquidator
    QueryRunArchived: QueryRun has been archived