v3.22.0.1
Fair Value Measurement and Financial Instruments
12 Months Ended
Dec. 31, 2021
Fair Value Disclosures [Abstract]  
Fair Value Measurement and Financial Instruments Fair Value Measurements and Financial Instruments
The following table summarizes the Company’s financial assets and liabilities measured at fair value on a recurring basis (in thousands):

As of December 31, 2020
Level 1Level 2Level 3Total
Assets
Cash equivalents:
Money market funds$22,676 $— $— $22,676 
Certificates of deposit278,281 — — 278,281 
U.S. government debt securities— 1,392,966 — 1,392,966 
Commercial paper— 779,527 — 779,527 
Corporate debt securities— 229,633 — 229,633 
300,957 2,402,126 — 2,703,083 
Marketable securities:
Certificates of deposit142,991 — — 142,991 
U.S. government and government agency debt securities— 65,867 — 65,867 
Commercial paper— 241,623 — 241,623 
Corporate debt securities— 267,618 — 267,618 
Mortgage-backed and asset-backed securities— 37,353 — 37,353 
Mutual funds— 155,248 — 155,248 
142,991 767,709 — 910,700 
Funds receivable and amounts held on behalf of customers:
U.S. government and government agency debt securities— 466,219 — 466,219 
Prepaids and other current assets:
Foreign exchange derivative assets— 12,478 — 12,478 
Other assets, noncurrent:
Corporate debt securities— — 11,490 11,490 
Total assets at fair value$443,948 $3,648,532 $11,490 $4,103,970 
Liabilities
Accrued expenses and other current liabilities:
Foreign exchange derivative liabilities$— $32,250 $— $32,250 
Derivative warrant liability (Note 10)
— — 985,181 985,181 
Total liabilities at fair value$— $32,250 $985,181 $1,017,431 
As of December 31, 2021
Level 1Level 2Level 3Total
Assets
Cash equivalents:
Money market funds$1,923,184 $— $— $1,923,184 
Certificates of deposit31,117 — — 31,117 
Commercial paper— 163,959 — 163,959 
Corporate debt securities— 41,439 — 41,439 
1,954,301 205,398 — 2,159,699 
Marketable securities:
Certificates of deposit364,234 — — 364,234 
U.S. government and government agency debt securities— 863 — 863 
Commercial paper— 993,004 — 993,004 
Corporate debt securities— 862,901 — 862,901 
Mortgage-backed and asset-backed securities— 34,036 — 34,036 
364,234 1,890,804 — 2,255,038 
Funds receivable and amounts held on behalf of customers:
Money market funds466,319 — — 466,319 
Prepaids and other current assets:
Foreign exchange derivative assets— 25,918 — 25,918 
Other assets, noncurrent:
Corporate debt securities— — 10,451 10,451 
Total assets at fair value$2,784,854 $2,122,120 $10,451 $4,917,425 
Liabilities
Accrued expenses and other current liabilities:
Foreign exchange derivative liabilities$— $10,280 $— $10,280 
Total liabilities at fair value$— $10,280 $— $10,280 

The following table presents additional information about investments that are measured at fair value for which the Company has utilized Level 3 inputs to determine fair value (in thousands):

December 31,
20202021
Derivative
Warrant
Liability
Other
Assets,
Noncurrent
Derivative
Warrant
Liability
Other
Assets,
Noncurrent
Balance, beginning of year$— $13,029 $985,181 $11,490 
Additions116,641 — — — 
Reclassifications to equity— — (1,277,168)— 
Total realized and unrealized gains (losses):
Included in earnings868,540 — 291,987 — 
Included in other comprehensive income (loss)— (1,539)— (1,039)
Balance, end of year$985,181 $11,490 $— $10,451 
Changes in unrealized gains or losses included in other comprehensive income (loss) related to investments held at the reporting date$— $(1,539)$— $(1,039)

There were no transfers of financial instruments between valuation levels during the years ended December 31, 2020 and 2021.

The Company amended the anti-dilution feature in the warrant agreements associated with the Second Lien Credit Agreement which resulted in a change in classification from liability to equity. Accordingly, the Company recorded $292.0 million in other income (expense), net through March 30, 2021, the modification date, and as such the warrants were no longer subject to marked-to-market charges. The balance of $1.3 billion was then reclassified from liability to equity as the amended warrants met the requirements for equity classification. Refer to Note 10, Debt, for additional information.
The following table presents additional information about valuation techniques and inputs used for investments that are measured at fair value and categorized within Level 3 as of December 31, 2020 (fair value amounts in thousands):
Fair ValueValuation TechniqueUnobservable
Inputs
Inputs Value
Liability
Derivative warrant liability$985,181 Black-Scholes option-pricing modelStock volatility44.4 %
Risk-free rate0.9 %
Expected term9.3 years
Derivatives Not Designated as Hedging Instruments

As of December 31, 2020, the fair value of foreign exchange derivative assets and liabilities totaled $12.5 million and $32.3 million, respectively, with the aggregate notional amount totaling $1.4 billion. As of December 31, 2021, the fair value of foreign exchange derivative assets and liabilities totaled $25.9 million and $10.3 million, respectively, with the aggregate notional amount totaling $2.4 billion. Derivative assets are included in prepaids and other current assets and derivative liabilities are included in accrued expenses and other current liabilities in the consolidated balance sheets.

The Company recorded total net realized gains (losses) of $(21.7) million and $19.3 million and net unrealized gains (losses) of $(24.6) million and $35.4 million for the years ended December 31, 2020 and 2021, respectively, related to foreign exchange derivative assets and liabilities. The realized and unrealized gains and losses on non-designated derivatives are reported in other income (expense), net in the consolidated statements of operations. The cash flows related to derivative instruments not designated as hedging instruments are classified within operating activities in the consolidated statements of cash flows.
The Company has master netting arrangements with the respective counterparties to its derivative contracts, which are designed to reduce credit risk by permitting net settlement of transactions with the same counterparty. The Company presents its derivative assets and derivative liabilities at their gross fair values in its consolidated balance sheets. As of December 31, 2020, the potential effect of these rights of set-off associated with the Company’s derivative contracts would be a reduction to both assets and liabilities of $11.4 million, resulting in net derivative assets of $1.1 million and net derivative liabilities of $20.9 million. As of December 31, 2021, the potential effect of these rights of set-off associated with the Company’s derivative contracts would be a reduction to both assets and liabilities of $10.3 million, resulting in net derivative assets of $15.6 million.