For the year ended December 31, 2020 compared to the year ended December 31, 2019, the decrease in cash used in operating activities primarily reflects the improving leverage, after excluding certain non-cash expenses, from increased revenues, while reducing cost of revenue and marketing expenses.
Cash Flows from Investing Activities
Cash flows from investing activities primarily relate to our treasury operations of investing in available-for-sale investments, investment in website development and internal-use software, as well as purchase of property and equipment.
Net cash used in investing activities for the year ended December 31, 2020 was $39.7 million, which was primarily due to net investment cash outflows of $35.5 million, investment in website development and internal-use software of $2.5 million and purchase of property, equipment, and intangibles of $1.7 million.
Net cash used in investing activities for the year ended December 31, 2019 was $39.3 million, which was primarily due to net investment cash outflows of $37.5 million, investment in website development and internal-use software of $1.5 million and purchase of property and equipment of $0.3 million.
Cash Flows from Financing Activities
Net cash provided by financing activities for the year ended December 31, 2020 was $47.7 million, which was primarily due to the sale of Series D redeemable convertible preferred stock, net of cash paid for issuance costs, totaling $51.9 million. Proceeds from exercise of warrants and stock options provided cash inflow totaling $0.7 million. These cash inflows were partially offset by payments for transaction costs associated with the Merger of $3.4 million and term loan repayments totaling $1.5 million.
Net cash provided by financing activities for the year ended December 31, 2019 was $95.3 million, which was primarily due to the sale of Series C redeemable convertible preferred stock, net of cash paid for issuance costs, totaling $102.6 million and term loan borrowings of $2.1 million. These cash inflows were partially offset by term loan repayments totaling $9.1 million and a cash outflow attributable to debt issuance costs totaling $0.4 million.
Indebtedness
Silicon Valley Bank
On November 27, 2019, Hims and Silicon Valley Bank (“SVB”) amended and restated the Amended and Restated Loan Agreement, dated as of May 16, 2018, by and between Hims and SVB (the “Second Amended and Restated Loan Agreement”), which accelerated the repayment of the existing loan over a six-month period, to be paid in full by May 1, 2020. Hims repaid the loan by May 1, 2020.
In the Second Amended and Restated Loan Agreement, SVB also provided a revolving debt facility (the “Revolving Line”), of up to $8.0 million, with a maturity date of December 31, 2020. Upon termination of the Revolving Line for any reason prior to its maturity date, Hims would have been required to pay, in addition to any payments owed, a termination fee equal to 1.00% of the Revolving Line. The interest rate for the Revolving Line is equal to the Prime Rate plus 0.50%, with a floor of 5.75%. Hims did not draw down from this Revolving Line and therefore, no amounts were required to be repaid by December 31, 2020.
As of December 31, 2020, SVB issued on Hims’ behalf a letter of credit in the amount of $0.8 million as a security deposit for a warehouse space in New Albany, Ohio. SVB required Hims to maintain $0.8 million as a collateral for the outstanding letter of credit. We expect to continue to renew the letter of credit through the duration of the lease. As this is for longer than one year, the $0.8 million is presented within restricted cash, noncurrent on Hims’ consolidated balance sheet.
Upon Hims’ request, SVB will issue letters of credit (the “Letters of Credit”) for Hims’ account in an aggregate amount not to exceed $2.0 million, which is reduced by the amount otherwise available with respect to the cash management services, which may include merchant services, direct deposit of payroll, business credit card, and check
14