Debt Securities Portfolio. Securities available-for-sale increased $54.7 million, or 44.8%, to $176.8 million at June 30, 2024 from $122.1 million at December 31, 2023, due to management proactively increasing the investment portfolio to approximately 15% of total assets as part of our balance sheet management strategy, while simultaneously moderating multifamily and commercial real estate (“CRE”) growth due to the current economic and interest rate environment. The increase was driven by purchases of $65.2 million, partially offset by paydowns of $9.0 million and unrealized losses of $1.4 million. Securities held-to-maturity decreased $3.9 million, or 5.1%, to $73.1 million at June 30, 2024 from $77.0 million at December 31, 2023, driven by paydowns of $3.9 million and net premium amortization of $48 thousand.
Funding. Total deposits increased $79.6 million, or 5.7%, to $1.49 billion at June 30, 2024 from $1.41 billion at December 31, 2023. We continue to focus on the acquisition and expansion of core deposit relationships. Core deposits, which we define as total deposits excluding time deposits, totaled $1.47 billion at June 30, 2024, or 99.2% of total deposits, compared to $1.40 billion or 99.4% of total deposits at December 31, 2023. Litigation and payment processing deposits represent $1.27 billion, or 85.7%, of total deposits at June 30, 2024. Savings, NOW and money market deposits increased $65.7 million, or 7.1%, to $992.0 million at June 30, 2024.
Core commercial relationship banking clients in our two national verticals represent approximately 84% of our $1.49 billion deposit base at June 30, 2024. These relationship banking clients are derived from coupling lending facilities, payment processing, and other unique custodial banking needs with commercial cash management depository services. Our deposit strategy primarily focuses on developing full service commercial banking relationships with our clients through lending facilities, payment processing, and other unique commercial cash management services in our two national verticals, rather than competing with other institutions on rate. Our longer duration interest on lawyer trust accounts (“IOLTA”), escrow and claimant trust settlement deposits represent $813.6 million, or 54.7%, of total deposits. As of June 30, 2024, uninsured deposits were $455.7 million, or 31%, of our total deposits of $1.49 billion, excluding $11.1 million of affiliate deposits held by the Bank. Approximately 80% of our uninsured deposits represent clients with full relationship banking (loans, payment processing, and other service-oriented relationships) including, but not limited to, law firm operating accounts, law firm IOLTA/escrow accounts, merchant reserves, ISO reserves, ACH processing, and custodial accounts.
Due to the nature of our larger mass tort and class action settlements related to the litigation vertical, we participate in FDIC insured sweep programs as well as treasury secured money market funds. As of June 30, 2024, off-balance sheet sweep funds totaled approximately $408.0 million, of which approximately $273.6 million, or 67.1%, was available to be swept onto our balance sheet as reciprocal client relationship deposits. Our deposit growth and off-balance sheet funds continue to demonstrate our highly efficient branchless and technology enabled deposit platforms.
At June 30, 2024, we had the ability to borrow a total of $324.8 million from the Federal Home Loan Bank of New York. We also had an available line of credit with the Federal Reserve Bank of New York discount window of $54.4 million. No borrowing amounts were outstanding as of June 30, 2024. Historically, we have never leveraged our balance sheet to generate earnings and have always utilized core client deposits to fund our asset growth and related earnings.
Stockholders’ Equity. Total stockholders’ equity increased $18.9 million to $217.4 million at June 30, 2024, from $198.6 million at December 31, 2023, primarily due to net income of $20.5 million and amortization of share-based compensation of $1.9 million, partially offset by dividends declared to common stockholders of $2.5 million and other comprehensive loss of $1.0 million due to the decrease in fair value of our available-for-sale securities portfolio.
Asset Quality. Nonperforming assets consisted of one multifamily loan totaling $10.9 million as of June 30, 2024 and December 31, 2023. We had no exposure to commercial office space, no construction loans, and only $15.0 million in performing loans to the hospitality industry. The allowance for credit losses was $18.5 million, or 1.47% of total loans, as of June 30, 2024, as compared to $16.6 million, or 1.38% of total loans at December 31, 2023. The increase in the allowance as a percentage of loans was general reserve driven considering loan growth and qualitative factors associated with the current short-term interest rate environment as well as the current uncertain economic environment including, but not limited to, its potential impact on the New York Metro multifamily and commercial real estate market. At June 30, 2024, special mention and substandard loans totaled $4.0 million and $10.9 million, respectively, substantially unchanged from December 31, 2023. The ratio of nonperforming loans to total loans and total assets was 0.87% and 0.64%,