feyikemiCompound Users
    Updated 2025-03-10
    WITH lending_users AS (
    -- Avalanche
    SELECT borrower AS user, 'avalanche' AS chain FROM avalanche.defi.ez_lending_borrows WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT depositor AS user, 'avalanche' AS chain FROM avalanche.defi.ez_lending_deposits WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT depositor AS user, 'avalanche' AS chain FROM avalanche.defi.ez_lending_withdraws WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT payer AS user, 'avalanche' AS chain FROM avalanche.defi.ez_lending_repayments WHERE platform ILIKE 'compound%'

    UNION ALL

    -- Base
    SELECT borrower AS user, 'base' AS chain FROM base.defi.ez_lending_borrows WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT depositor AS user, 'base' AS chain FROM base.defi.ez_lending_deposits WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT depositor AS user, 'base' AS chain FROM base.defi.ez_lending_withdraws WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT payer AS user, 'base' AS chain FROM base.defi.ez_lending_repayments WHERE platform ILIKE 'compound%'

    UNION ALL

    -- Ethereum
    SELECT borrower AS user, 'ethereum' AS chain FROM ethereum.defi.ez_lending_borrows WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT depositor AS user, 'ethereum' AS chain FROM ethereum.defi.ez_lending_deposits WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT depositor AS user, 'ethereum' AS chain FROM ethereum.defi.ez_lending_withdraws WHERE platform ILIKE 'compound%'
    UNION ALL
    SELECT payer AS user, 'ethereum' AS chain FROM ethereum.defi.ez_lending_repayments WHERE platform ILIKE 'compound%'

    UNION ALL

    -- Polygon
    SELECT borrower AS user, 'polygon' AS chain FROM polygon.defi.ez_lending_borrows WHERE platform ILIKE 'compound%'
    Last run: 3 months ago
    UNIQUE_USERS
    1
    597065
    1
    10B
    12s