Abbas_ra21Retention
    Updated 2024-11-28
    -- forked from Total Users @ https://flipsidecrypto.xyz/edit/queries/3352b4a6-ce17-43aa-84ce-ef11460a2cb4

    with main AS (select
    BLOCK_TIMESTAMP,
    'Deposit' AS "Event Name",
    DEPOSITOR AS user
    from
    base.defi.ez_lending_deposits
    where
    PLATFORM = 'Seamless'
    union ALL
    select
    BLOCK_TIMESTAMP,
    'Borrow' AS "Event Name",
    BORROWER AS user
    from
    base.defi.ez_lending_borrows
    where
    PLATFORM = 'Seamless'
    union ALL
    select
    BLOCK_TIMESTAMP,
    'Flashloan' AS "Event Name",
    INITIATOR AS user
    from
    base.defi.ez_lending_flashloans
    where
    PLATFORM = 'Seamless'
    union ALL
    select
    BLOCK_TIMESTAMP,
    'Liquidation' AS "Event Name",
    BORROWER AS user
    from
    base.defi.ez_lending_liquidations
    where
    Auto-refreshes every 24 hours
    QueryRunArchived: QueryRun has been archived