i_danLending Total
    Updated 2024-11-08
    WITH weekly AS (
    SELECT
    platform
    , token_symbol
    , SUM(amount_usd) AS volume
    , COUNT(DISTINCT origin_from_address) AS users
    , COUNT(tx_hash) AS transactions
    FROM base.defi.ez_lending_deposits
    GROUP BY 1, 2
    UNION ALL
    SELECT
    platform
    , token_symbol
    , SUM(amount_usd) AS volume
    , COUNT(DISTINCT origin_from_address) AS users
    , COUNT(tx_hash) AS transactions
    FROM base.defi.ez_lending_withdraws
    GROUP BY 1, 2
    UNION ALL
    SELECT
    platform
    , token_symbol
    , SUM(amount_usd) AS volume
    , COUNT(DISTINCT origin_from_address) AS users
    , COUNT(tx_hash) AS transactions
    FROM base.defi.ez_lending_borrows
    GROUP BY 1, 2
    UNION ALL
    SELECT
    platform
    QueryRunArchived: QueryRun has been archived