v3.22.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities:      
Net loss $ (352,034) $ (4,584,716) $ (674,339)
Adjustments to reconcile net loss to cash provided by (used in) operating activities:      
Depreciation and amortization 138,319 125,876 114,162
Bad debt expense 27,285 107,685 77,053
Stock-based compensation expense 898,830 3,001,948 97,547
Deferred income taxes 10,935 (19,601) (5,627)
Impairment of investments 3,081 82,125 27,751
(Gain) loss on investments, net (8,253) 31,457 (38,472)
Change in fair value of warrant liability 291,987 868,539 (286)
Amortization of debt discount and debt issuance costs 8,444 18,323 0
Noncash interest expense, net 6,806 5,769 4,153
Foreign exchange (gain) loss 24,371 (53,176) 2,927
Impairment of long-lived assets 112,545 35,772 0
Loss from extinguishment of debt 377,248 0 0
Other, net 12,207 34,877 (2,524)
Changes in operating assets and liabilities, net of acquisitions:      
Prepaids and other assets (54,351) (15,863) (186,445)
Operating lease right-of-use assets 25,156 (33,280) 49,126
Accounts payable 39,946 (73,111) 75,716
Accrued expenses and other liabilities 165,130 43,756 547,654
Operating lease liabilities (33,774) 60,897 (41,923)
Unearned fees 495,816 (267,009) 176,254
Net cash provided by (used in) operating activities 2,189,694 (629,732) 222,727
Cash flows from investing activities:      
Purchases of property and equipment (25,322) (37,371) (125,452)
Purchases of marketable securities (4,938,188) (3,032,664) (1,016,155)
Sales of marketable securities 1,584,188 1,348,173 609,438
Maturities of marketable securities 2,026,867 1,810,052 551,647
Payments for equity investments in privately-held companies 0 0 (208,182)
Acquisitions, net of cash acquired 0 0 (192,116)
Other investing activities, net 500 (8,600) 33,665
Net cash provided by (used in) investing activities (1,351,955) 79,590 (347,155)
Cash flows from financing activities:      
Proceeds from issuance of common stock upon initial public offering, net of underwriting discounts and offering costs 0 3,650,870 0
Taxes paid related to net share settlement of equity awards (53,955) (1,650,454) 0
Proceeds from issuance of long-term debt and warrants, net of issuance costs 0 1,928,880 0
Principal repayment of long-term debt (1,995,000) (5,000) 0
Prepayment penalty on long-term debt (212,883) 0 0
Proceeds from issuance of convertible senior notes, net of issuance costs 1,979,166 0 0
Purchases of capped calls related to convertible senior notes (100,200) 0 0
Proceeds from exercise of stock options 137,572 15,074 5,873
Proceeds from the issuance of common stock under employee stock purchase plan 50,621 0 0
Change in funds payable and amounts payable to customers 1,625,838 (1,012,081) 848,706
Other financing activities, net 0 13,525 0
Net cash provided by financing activities 1,431,159 2,940,814 854,579
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (209,861) 134,137 (25,284)
Net increase in cash, cash equivalents, and restricted cash 2,059,037 2,524,809 704,867
Cash, cash equivalents, and restricted cash, beginning of year 7,668,252 5,143,443 4,438,576
Cash, cash equivalents, and restricted cash, end of year 9,727,289 7,668,252 5,143,443
Supplemental disclosures of cash flow information:      
Cash paid for income taxes, net of refunds 17,291 15,103 28,192
Cash paid for interest 49,892 129,798 5,178
Noncash investing and financing activities:      
Common stock and stock awards issued for acquisitions $ 0 $ 0 $ 240,687