due to higher metals prices, higher processed ore tonnes and higher ore grades for the year ended December 31, 2021, compared to the prior year period, partially offset by increased receivables from customers.
Cash used by investing activities was $79.0 million and $64.4 million for the years ended December 31, 2021 and 2020, respectively. The $14.6 million increase in cash used was primarily due to higher expenditures for property, plant and equipment and mine development.
Cash used by financing activities was $22.1 million for the year ended December 31, 2021 and cash provided by financing activities was $16.9 million for the year ended December 31, 2020. The $39.1 million change in financing cash flows was primarily due to the $144.8 million retirement of the Term Loan in July 2021, the $60 million extinguishment of the WCF in March 2021, and the $15.9 million Term Loan payment in June 2021, partially offset by the $207.2 million of capital contributions in 2021 and the proceeds from the $18.9 million related party loans to the LGJV during the year ended December 31, 2020.
Liquidity and Capital Resources
As of December 31, 2021, and December 31, 2020, we had cash and cash equivalents of $6.6 million and $150.1 million, respectively. The decrease in cash and cash equivalents was primarily due to our $71.6 million repurchase of the 18.5% interest in the LGJV from Dowa, the $42.0 million capital contribution to the LGJV used to extinguish our 70% share of the WCF, the $144.8 million capital contribution to the LGJV used to extinguish our 70% share of the Term Loan repayment, and a $10.0 million fee paid to Dowa; partially offset by net proceeds of $118.9 million from the July 2021 follow-on public offering and $13.0 million borrowing under the Credit Facility. As a result of the 18.5% repurchase, our ownership in the LGJV increased to 70% and Dowa’s ownership reduced to 30% on March 11, 2021.
Sources and Uses of Capital Resources
On March 11, 2021, using proceeds from our initial public offering on October 30, 2020, we repurchased an approximate 18.5% interest in the LGJV, increasing our ownership to 70.0%, for a total consideration of $71.6 million, including a premium and all costs incurred by Dowa in connection with its ownership of such equity interest, including, but not limited to, legal and accounting fees, capital contributions and taxes. Additionally, we contributed $42.0 million, our 70% share to extinguish the $60.0 million WCF.
On July 19, 2021, we completed a public offering of 8,930,000 shares of common stock at a price of $14.00 per share, resulting in net proceeds of $118.9 million, after deducting underwriting discounts and commissions. On August 18, 2021, the Company issued an additional 286,962 shares of common stock at a price of $14.00 per share, through the exercise of the over-allotment option, with net proceeds from the additional issuance of $3.8 million, after deducting underwriting discounts and commissions. Additionally, the Company incurred $1.7 million in other costs related to the offering.
On July 12, 2021, the Company entered into the Credit Facility that provides for a $50 million revolving line of credit and has an accordion feature, which allows for an increase in the total line of credit up to $100.0 million (reduced to $75 million per the December 19, 2022 amendment), subject to certain conditions. As of December 31, 2021, $13.0 million was outstanding under the Credit Facility. The current balance outstanding on the Credit Facility is $9.0 million following a $4.0 million principal repayment in December 2022. For additional information, see “—Liquidity and Capital Resources—Indebtedness and Lines of Credit” below.
On July 26, 2021, the LGJV repaid all amounts owed to Dowa under the Term Loan. To fund its 70% portion of the Term Loan repayment, the Company loaned $144.8 million to the LGJV. This loan was converted into a capital contribution to the LGJV on July 26, 2021.
On May 31, 2023, our cash and cash equivalents are $10.5 million and we have $41 million available to be drawn under the Credit Facility; and the LGJV has cash and cash equivalents of $78.9 million. We believe we have sufficient cash and access to borrowings and other resources to carry out our business plans for at least the next 12 months. We may decide to increase our current financial resources with external financings if our long-term business needs require us to do so however there can be no assurance that the financing will be available to us on acceptable terms, or at all. We manage liquidity risk through our credit facility and the management of our capital structure.
We may be required to provide funds to the LGJV to support operations at the CLG which, depending upon the circumstances, may be in the form of equity, various forms of debt, joint venture funding or some combination thereof. There can be no assurance that additional funds will be available to us on acceptable terms, or at all. If we raise additional funds by issuing equity or