kravietzburrow Detailed Breakdown of Stablecoin Pool Metrics
    Updated 2025-03-06
    WITH stablecoin_pools AS (
    SELECT
    symbol,
    COUNT(DISTINCT sender_id) AS unique_users,
    COUNT(tx_hash) AS total_transactions,
    SUM(amount_usd) AS total_volume_usd,
    AVG(amount_usd) AS average_amount_usd
    FROM
    near.defi.ez_lending
    WHERE
    platform = 'burrow'
    AND symbol ILIKE ANY ('USDt', 'USDC', 'FRAX')
    AND actions IN ('deposit', 'increase_collateral')
    AND block_timestamp >= '2024-08-01'
    GROUP BY symbol
    )
    SELECT
    symbol,
    unique_users,
    total_transactions,
    total_volume_usd,
    average_amount_usd
    FROM
    stablecoin_pools
    ORDER BY total_volume_usd DESC
    Last run: about 1 month ago
    SYMBOL
    UNIQUE_USERS
    TOTAL_TRANSACTIONS
    TOTAL_VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    USDt1032148628311473307.8874126405.225546751
    2
    USDC13587134187216947743.9156331616.756793994
    3
    FRAX428428339638690.679639254.889255109
    3
    156B
    3s