XML 17 R5.htm IDEA: XBRL DOCUMENT v3.19.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Operating activities    
Net loss $ (79,804) $ (33,232)
Adjustments to reconcile net loss to net cash used in operating activities    
Depreciation and amortization 3,809 3,902
Stock-based compensation 12,282 8,974
Amortization of debt discount and issuance costs 3,031 0
Non-cash lease expense 2,943 0
Other (100) 0
Change in assets and liabilities    
Accrued revenue (23,323) (5,568)
Inventory (62,960) (11,137)
Prepaid expenses and other assets 1,230 3,682
Accounts payable 1,350 1,934
Accrued liabilities and other payables 26,494 7,481
Operating lease liabilities (3,301)  
Deferred rent (5) (583)
Origination of loans held for sale (153,335) (29,249)
Proceeds from sale of loans originated as held for sale 128,080 27,555
Net cash used in operating activities (143,609) (26,241)
Investing activities    
Purchases of investments (70,312) 0
Sales of investments 100 0
Purchases of property and equipment (9,504) (4,045)
Net cash used in investing activities (79,716) (4,045)
Financing activities    
Proceeds from the exercise of stock options 8,965 14,394
Tax payments related to net share settlements on restricted stock units (1,792) (227)
Borrowings from warehouse credit facilities 149,900 28,551
Repayments of warehouse credit facilities (125,206) (27,076)
Other payables - deposits held in escrow 11,602 13,631
Net cash provided by financing activities 43,469 29,273
Effect of exchange rate changes on cash and cash equivalents 38 0
Net change in cash, cash equivalents, and restricted cash (179,818) (1,013)
Cash, cash equivalents, and restricted cash    
Beginning of period 439,055 212,658
End of period 259,237 211,645
Supplemental disclosure of cash flow information    
Cash paid for interest 1,202 0
Non-cash transactions    
Stock-based compensation capitalized in property and equipment (561) (244)
Property and equipment additions in accounts payable and accrued liabilities (620) (21)
Leasehold improvements paid directly by lessor $ (3,444) $ (926)