under our ATM Program, and paid $0.8 million in related offering costs. We also received a $1.4 million contribution from our former joint venture partner. These net cash inflows were partially offset as we paid $4.9 million to repurchase common stock to satisfy the tax obligations in connection with the vesting of restricted common stock issued to employees, $1.6 million in principal payments on our notes payable and $8.0 million in dividends to our preferred stockholders.
Future. While operations have improved in the first six months of 2022 as compared to the same period in 2021, certain of our hotels continue to operate below pre-pandemic levels. We believe the ongoing effects of the COVID-19 pandemic, including the spread of variants, on our operations could continue to have a negative impact on our financial results and liquidity in 2022. Despite these challenges, we believe that we have sufficient liquidity, as well as access to our credit facility and capital markets, to withstand the current decline in our operating cash flow. Given the unprecedented impact of COVID-19 on the global market and our hotel operations, we cannot, however, assure you that our forecast or the assumptions we used to estimate our liquidity requirements will be correct. In addition, the magnitude and duration of the COVID-19 pandemic is uncertain.
We expect our primary sources of cash will continue to be our working capital, credit facility, term loans, 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 or that the capital markets will be available to us in the future on favorable terms or at all.
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, credit facility and term loans, 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 July 2022, we amended the agreements related to our credit facility and term loans, resulting in an increase in the aggregate amount of the term loans from $108.3 million to $350.0 million and the repayment of the $230.0 million outstanding under the credit facility (see Debt below).
On August 2, 2022, our board of directors declared a cash dividend of $0.05 per share of common stock that will be payable on October 17, 2022 to holders of record as of September 30, 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 June 30, 2022, our unrestricted cash balance was $107.3 million. We believe that our current unrestricted cash balance and our ability to draw the remaining capacity available for borrowing under the unsecured revolving credit facility will enable us to successfully manage our Company while operations at our hotels are reduced.
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, the loan secured by the Hilton San Diego Bayfront exited the cash trap. The cash trap provision triggered on the loan secured by the JW Marriott New Orleans will remain until the hotel reaches profitability levels that terminate the cash trap. As of June 30, 2022, no excess cash generated by the JW Marriott New Orleans was held in a lockbox account for the benefit of the lender.
Debt. As of June 30, 2022, we had $805.4 million of debt, $152.9 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 maintaining a highly flexible structure, we will have lower capital costs than more highly leveraged companies, or companies with limited flexibility due to restrictive corporate-level financial covenants.
In February 2022, we used a portion of the proceeds received from the disposition of the Hyatt Centric Chicago Magnificent Mile to repay $25.0 million of our unsecured Series A Senior Notes and $10.0 million of our unsecured Series B Senior Notes, resulting in remaining balances of $65.0 million and $105.0 million on our Series A Senior Notes and Series B Senior Notes, respectively, as of June 30, 2022.
In March 2022, we elected to early terminate the covenant relief period related to our unsecured debt, having satisfied the financial covenants stipulated in the 2020 and 2021 Unsecured Debt Amendments for the quarter ended December 31, 2021. The Unsecured Debt Amendments were scheduled to provide covenant relief through the end of the third quarter of 2022, with quarterly testing resuming for the period ending September 30, 2022. Following our early termination of the covenant relief period in March 2022, the original financial covenants on our unsecured debt agreements will be phased-in over the following five quarters to ease compliance. By exiting the covenant relief period, we are no longer subject to additional restrictions on debt issuance and repayment, capital investment, share repurchases and dividend distributions that were imposed as part of the Unsecured Debt Amendments.