0xHaM-dTotal
    Updated 2025-02-11
    with eventTb as (
    SELECT
    EVENT_NAME,
    BLOCK_TIMESTAMP,
    TX_HASH,
    ORIGIN_FROM_ADDRESS,
    PLATFORM,
    TOKEN_SYMBOL,
    AMOUNT,
    AMOUNT_USD
    FROM avalanche.defi.ez_lending_borrows
    WHERE TOKEN_SYMBOL ilike ANY ('%USDC%', '%USDT%', 'AUSD','BUSD')

    UNION ALL

    SELECT
    EVENT_NAME,
    BLOCK_TIMESTAMP,
    TX_HASH,
    ORIGIN_FROM_ADDRESS,
    PLATFORM,
    TOKEN_SYMBOL,
    AMOUNT,
    AMOUNT_USD
    FROM avalanche.defi.ez_lending_deposits
    WHERE TOKEN_SYMBOL ilike ANY ('%USDC%', '%USDT%', 'AUSD','BUSD')

    UNION ALL

    SELECT
    EVENT_NAME,
    BLOCK_TIMESTAMP,
    TX_HASH,
    ORIGIN_FROM_ADDRESS,
    PLATFORM,
    FLASHLOAN_TOKEN_SYMBOL,
    Last run: about 2 months ago
    N_TXS
    N_USERS
    TOTAL_AMT
    1
    2292148151852138162884398.17
    1
    34B
    4s