Kruys-Collinsyawning-ivory copy copy
    Updated 2025-01-22


    SELECT
    'Suppliers' AS type,
    COUNT(DISTINCT l.sender_id) AS n_users,
    COUNT(*) AS total_transactions,
    SUM(l.amount_usd) AS total_amount_usd
    FROM
    near.defi.ez_lending l
    WHERE l.contract_address = 'contract.main.burrow.near'
    AND actions in ('deposit_to_reserve', 'deposit')

    UNION ALL

    SELECT
    'Withdrawers' AS type,
    COUNT(DISTINCT l.sender_id) AS n_users,
    COUNT(*) AS total_transactions,
    SUM(l.amount_usd) AS total_amount_usd
    FROM
    near.defi.ez_lending l
    WHERE l.contract_address = 'contract.main.burrow.near'
    AND actions = 'withdraw_succeeded'


    Last run: about 2 months ago
    TYPE
    N_USERS
    TOTAL_TRANSACTIONS
    TOTAL_AMOUNT_USD
    1
    Suppliers604103403662185505038.65219
    2
    Withdrawers527004601042050467290.01133
    2
    91B
    6s