kingneduStablecoin Borrowing
    Updated 2025-01-22

    select
    date_trunc('month', block_timestamp::date) as month,
    symbol,
    count(distinct sender_id) as users,
    count(distinct tx_hash) as "No of transactions",
    sum(coalesce(amount_usd,0)) as "Total Amount (USD)",
    sum("No of transactions") OVER(ORDER BY month) as Cum_Total_Transactions,
    sum("Total Amount (USD)") OVER(ORDER BY month) as Cum_Total_Volume
    from near.defi.ez_lending
    where symbol in ('USDt', 'DAI', 'FRAX', 'USDC', 'USN','USDC.e','USDT.e')
    and actions ilike 'borrow'
    group by 1, 2
    order by 1 desc



    Last run: 3 months ago
    MONTH
    SYMBOL
    USERS
    No of transactions
    Total Amount (USD)
    CUM_TOTAL_TRANSACTIONS
    CUM_TOTAL_VOLUME
    1
    2025-01-01 00:00:00.000USDC.e1446145602.751151117107756589443501.82107
    2
    2025-01-01 00:00:00.000USDT.e92089460.654865918107756589443501.82107
    3
    2025-01-01 00:00:00.000FRAX432651028726.17347134107756589443501.82107
    4
    2025-01-01 00:00:00.000USDt1227344429793.70418371107756589443501.82107
    5
    2025-01-01 00:00:00.000DAI145581858.150923943107756589443501.82107
    6
    2025-01-01 00:00:00.000USDC296374467788752.10087708107756589443501.82107
    7
    2024-12-01 00:00:00.000USDt28112928421243.0167704799190575879308.285597
    8
    2024-12-01 00:00:00.000FRAX883133969781.2346556499190575879308.285597
    9
    2024-12-01 00:00:00.000USDC271486739076927.0164351699190575879308.285597
    10
    2024-12-01 00:00:00.000USDT.e1740263085.61133648199190575879308.285597
    11
    2024-12-01 00:00:00.000DAI26137341789.57001952699190575879308.285597
    12
    2024-12-01 00:00:00.000USDC.e361171896682.52182199190575879308.285597
    13
    2024-11-01 00:00:00.000USDC.e13135455298.65310858988618551909799.314558
    14
    2024-11-01 00:00:00.000USDT.e2067762261.58931231188618551909799.314558
    15
    2024-11-01 00:00:00.000DAI49161638774.77839301888618551909799.314558
    16
    2024-11-01 00:00:00.000USDt270121910771777.343413788618551909799.314558
    17
    2024-11-01 00:00:00.000USDC2529502510617116.103469788618551909799.314558
    18
    2024-11-01 00:00:00.000FRAX935543962167.7955040688618551909799.314558
    19
    2024-10-01 00:00:00.000USDt2169254754850.1960167781457524702403.051357
    20
    2024-10-01 00:00:00.000FRAX3290869689.76050304181457524702403.051357
    ...
    154
    12KB
    49s