m3jiVolume
    Updated 2024-09-04
    with result as (
    SELECT
    block_timestamp,
    tx_hash,
    origin_from_address,
    amount_usd,
    row_number() over (
    partition by amount_usd
    ORDER BY
    block_timestamp
    ) as rank
    FROM
    (
    SELECT
    block_timestamp,
    tx_hash,
    origin_from_address,
    amount_usd
    FROM
    base.defi.ez_lending_deposits
    WHERE
    platform = 'Aave V3'
    UNION
    SELECT
    block_timestamp,
    tx_hash,
    origin_from_address,
    amount_usd
    FROM
    base.defi.ez_lending_borrows
    WHERE
    platform = 'Aave V3'
    UNION
    SELECT
    block_timestamp,
    tx_hash,
    QueryRunArchived: QueryRun has been archived