i_danLending Platform
    Updated 2024-11-08
    WITH weekly AS (
    SELECT
    platform
    , 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
    UNION ALL
    SELECT
    platform
    , 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
    UNION ALL
    SELECT
    platform
    , 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
    UNION ALL
    SELECT
    platform
    , SUM(amount_usd) AS volume
    , COUNT(DISTINCT origin_from_address) AS users
    , COUNT(tx_hash) AS transactions
    QueryRunArchived: QueryRun has been archived