borrowing on our two term loans. We utilized the proceeds received from the incremental borrowing on the term loans to fully repay the $230.0 million we drew on our credit facility in the second quarter of 2022. In addition, we paid $38.9 million in principal payments on our notes payable, including $35.0 million to repay a portion of our senior notes, $2.0 million in scheduled principal payments on our notes payable and $1.9 million in principal payments associated with our Amended Credit Agreement, and we paid $7.4 million in deferred financing costs related to the Amended Credit Agreement.
During 2021, we received total gross proceeds of $215.0 million on our preferred stock offerings, including $115.0 million from the issuance of 4,600,000 shares of our Series H preferred stock and $100.0 million from the issuance of 4,000,000 shares of our Series I preferred stock, and we paid a total of $7.3 million in offering costs on our Series G preferred stock, Series H preferred stock and Series I preferred stock. We used $190.0 million of the proceeds received from our preferred stock offerings to redeem in full all 4,600,000 shares of our Series E preferred stock and all 3,000,000 shares of our Series F preferred stock. In addition, we received gross proceeds of $38.4 million from the issuance of 2,913,682 shares of our common stock under our ATM Program and paid $0.8 million in related offering costs. We also drew $110.0 million from our credit facility and received a $1.4 million contribution from our joint venture partner. These net cash inflows were offset as we paid the following: $4.9 million to repurchase common stock to satisfy the tax obligations in connection with the vesting of restricted common stock issued to employees; $110.0 million to repay all amounts outstanding on our credit facility; $79.9 million in principal payments on our notes payable, including $76.7 million to repay a portion of our term loans and $3.2 million in scheduled principal payments on our notes payable; $0.4 million in deferred financing costs related to the amendments on our unsecured debt; and $13.7 million in dividends to our preferred stockholders.
Future. While operations have improved in 2022 as compared to 2021, certain of our hotels continue to operate below pre-pandemic levels. The future operational and financial impact of the COVID-19 pandemic is difficult to predict; however, we believe our hotel operations will continue to normalize in 2023, absent the outbreak of a new critical variant.
The recent increases in inflation and interest rates have had and we expect will continue to have a negative effect on our operations. We have experienced increases in wages, employee-related benefits, food costs, commodity costs, including those used to renovate or reposition our hotels, property taxes, property and liability insurance, utilities and borrowing costs. The ability of our hotel operators to adjust rates has mitigated the impact of increased operating costs on our financial position and results of operations. However, the increases in interest rates will negatively affect our variable rate debt, resulting in increased interest payments in 2023.
Despite these challenges, we believe that we have sufficient liquidity, as well as access to our credit facility and capital markets, to withstand any potential declines in our operating cash flow. However, we cannot assure you that our forecast or the assumptions we used to estimate our liquidity requirements will be correct.
We expect our primary sources of cash will continue to be our working capital, credit facility, dispositions of hotel properties and proceeds from public and private offerings of debt securities and common and preferred stock. However, there can be no assurance that our future asset sales will be successfully completed. As a result of the impact the COVID-19 pandemic has had on our business, along with rising inflation rates, interest rates and a possible recession in 2023, certain sources of capital may not be as readily available to us as they have in the past or may come at higher costs.
We expect our primary uses of cash to be for operating expenses, including funding the cash flow needs at our hotels if necessary, capital investments in our hotels, repayment of principal on our notes payable and credit facility, interest expense, repurchases of our common stock, distributions on our common stock, dividends on our preferred stock and acquisitions of hotels or interests in hotels.
In the third quarter of 2022, our board of directors reinstated our quarterly common stock dividends, declaring cash dividends of $0.05 per common share in both the third and fourth quarters of 2022. Any future common stock dividends will be determined by our board of directors after considering our obligations under our various financing agreements, projected taxable income, compliance with our debt covenants, long-term operating projections, expected capital requirements and risks affecting our business.
Cash Balance. As of December 31, 2022, our unrestricted cash balance was $101.2 million. We believe that our current unrestricted cash balance and our ability to draw the $500.0 million capacity available for borrowing under the unsecured revolving credit facility will enable us to successfully manage our Company.
Certain of our loan agreements contain cash trap provisions that may be triggered if the performance of the hotels securing the loans decline. These provisions were triggered in January 2021 for the loan secured by the JW Marriott New Orleans, and in May 2021 for the loan secured by the Hilton San Diego Bayfront. In April 2022 and October 2022, the Hilton San Diego Bayfront and the JW Marriott New Orleans, respectively, reached profitability levels that terminated the cash traps.
Debt. As of December 31, 2022, we had $816.1 million of debt, $157.2 million of cash and cash equivalents, including restricted cash, and total assets of $3.1 billion. We believe that by maintaining appropriate debt levels, staggering maturity dates and