Wholesale brokered deposits increased by $60.0 million to $120.0 million. Overall noninterest-bearing deposits as a percent of total deposits at December 31, 2022, decreased to 38.2%, as compared to 39.0% at December 31, 2021.
Long term debt, which consisted of $35.5 million in trust preferred securities and $49.2 million in subordinated debt was $84.7 million for the year ended December 31, 2022 and remained relatively unchanged during 2022.
Other interest-bearing liabilities of $328.2 million on December 31, 2022 consisted of $109.2 million in customer repurchase agreements, $125.0 million in overnight fed funds purchased, and $94.0 million in overnight FHLB advances. Other interest-bearing liabilities at December 31, 2021 consisted exclusively of $106.9 million in customer repurchase agreements.
The Company continues to have substantial liquidity. At December 31, 2022, and December 31, 2021, the Company had the following sources of primary and secondary liquidity (Dollars in Thousands, Unaudited):
| | | | | | |
Primary and Secondary Liquidity Sources | | | December 31, 2022 | | | December 31, 2021 |
Cash and due from banks | | $ | 77,131 | | $ | 257,528 |
Unpledged investment securities | | | 1,097,164 | | | 806,132 |
Excess pledged securities | | | 43,096 | | | 47,024 |
FHLB borrowing availability | | | 718,842 | | | 787,519 |
Unsecured lines of credit | | | 237,000 | | | 305,000 |
Funds available through fed discount window | | | 42,278 | | | 50,608 |
Totals | | $ | 2,215,511 | | $ | 2,253,811 |
Total capital of $303.6 million at December 31, 2022 reflects a decrease of $58.9 million, or 16%, relative to year-end 2021. The decrease in equity during the year ended December 31, 2022 was primarily due to a $67.7 million unfavorable swing in accumulated other comprehensive income (loss), a one-time adjustment from the implementation of CECL on January 1, 2022, for $7.3 million, $13.9 million in dividends paid, and $4.9 million in share repurchases. The declines were partially offset by $33.7 million in net income. The remaining difference is related to stock options exercised and restricted stock granted during the year.
Asset Quality
Total nonperforming assets, comprised of nonaccrual loans, increased by $15.0 million to $19.6 million for the year ended December 31, 2022. The Company's ratio of nonperforming loans to gross loans increased to 0.96% at December 31, 2022 from 0.23% at December 31, 2021. The increase resulted from an increase in non-accrual loan balances, primarily as a result of a downgrade in the first quarter of 2022 of one loan relationship in the dairy industry consisting of four separate loans. At December 31, 2022, nonaccrual loans totaled $19.6 million compared to $4.5 million at December 31, 2021. All of the Company's impaired assets are periodically reviewed and are either well-reserved based on current loss expectations or are carried at the fair value of the underlying collateral, net of expected disposition costs.
Subsequent to year end, $18.1 million of nonaccrual loans within the aforementioned dairy relationship were foreclosed upon and were moved to other real estate owned or other foreclosed assets at net realizable value. The Company sold a portion of such assets for $2.4 million, which constituted book value, and continues to actively work with interested buyers to sell the remaining assets of the dairy.
The Company's allowance for credit losses on loans and leases was $23.1 million at December 31, 2022, as compared to a balance of $14.3 million at December 31, 2021. The allowance was 1.12% of total loans at December 31, 2022 and was 0.72% of total loans at December 31, 2021.
The $8.8 million increase in the allowance for credit losses on loans and leases during the year ended December 31, 2022, resulted from a $9.5 million one-time adjustment from the implementation of CECL on January 1, 2022, a $10.9 million provision for credit losses on loans and leases, offset by net loan charge-offs of $11.5 million.