Fair value measurements | Fair value measurements The following table sets forth the Company’s assets and liabilities that are measured at fair value on a recurring basis as of March 31, 2022 and December 31, 2021 (in thousands): Description Total Quoted prices in active markets (Level 1) Significant other observable inputs (Level 2) Significant unobservable inputs (Level 3) March 31, 2022 Assets: Cash and cash equivalents $ 106,260 $ 106,260 $ — $ — Marketable securities: U.S. government agency securities and treasuries 115,705 — 115,705 — Corporate bonds 33,667 — 33,667 — Commercial paper 9,823 — 9,823 — Equity securities 1,182 1,182 — — Total $ 266,637 $ 107,442 $ 159,195 $ — December 31, 2021 Assets: Cash and cash equivalents $ 161,160 $ 161,146 $ 14 $ — Marketable securities: U.S. government agency securities and treasuries 128,393 — 128,393 — Corporate bonds 49,308 — 49,308 — Commercial paper 54,065 — 54,065 — Equity securities 3,691 3,691 — — Total $ 396,617 $ 164,837 $ 231,780 $ — Cash and cash equivalents The Company considers all highly liquid securities with original final maturities of 90 days or less from the date of purchase to be cash equivalents. As of March 31, 2022 and December 31, 2021, cash and cash equivalents comprise funds in cash and money market accounts. Marketable securities Marketable securities classified as Level 2 within the valuation hierarchy generally consist of U.S. government agency securities and treasuries, corporate bonds, and commercial paper. The Company estimates the fair values of these marketable securities by taking into consideration valuations obtained from third-party pricing sources. These pricing sources utilize industry standard valuation models, including both income and market-based approaches, for which all significant inputs are observable, either directly or indirectly, to estimate fair value. These inputs include market pricing based on real-time trade data for the same or similar securities, issuer credit spreads, benchmark yields, and other observable inputs. The Company validates the prices provided by its third-party pricing sources by understanding the models used, obtaining market values from other pricing sources and analyzing pricing data in certain instances. The amortized cost of available-for-sale debt securities is adjusted for amortization of premiums and accretion of discounts to the earliest call date for premiums or to maturity for discounts. At March 31, 2022 and December 31, 2021, the balance in the Company’s accumulated other comprehensive loss was composed primarily of activity related to the Company’s available-for-sale debt securities. There were no material realized gains or losses recognized on the sale or maturity of available-for-sale debt securities during the three months ended March 31, 2022 or 2021. Accrued interest receivable on the Company's available-for-sale debt securities totaled $0.3 million and $0.3 million as of March 31, 2022 and December 31, 2021, respectively. No accrued interest receivable was written off during the three months ended March 31, 2022 or 2021. The following table summarizes available-for-sale debt securities in a continuous unrealized loss position for less than and greater than twelve months, and for which an allowance for credit losses has not been recorded at March 31, 2022 and December 31, 2021 (in thousands): Less than 12 months 12 months or greater Total Description Fair value Unrealized losses Fair value Unrealized losses Fair value Unrealized losses March 31, 2022 U.S. government agency securities $ 113,225 $ (2,005) $ 2,480 $ (20) $ 115,705 $ (2,025) Corporate bonds 30,417 (135) — — 30,417 (135) Total $ 143,642 $ (2,140) $ 2,480 $ (20) $ 146,122 $ (2,160) December 31, 2021 U.S. government agency securities $ 108,695 $ (505) $ 2,496 $ (4) $ 111,191 $ (509) Corporate bonds 45,042 (56) 3,896 (2) 48,938 (58) Total $ 153,737 $ (561) $ 6,392 $ (6) $ 160,129 $ (567) The Company determined that there was no material change in the credit risk of the above investments during the three months ended March 31, 2022. As such, an allowance for credit losses was not recognized. As of March 31, 2022, the Company does not intend to sell such securities, however, the Company determined that it is more likely than not that the Company will be required to sell certain securities before recovery of their amortized cost bases. The Company determined that the impact of this assessment was immaterial. Subsequently, in April 2022, the Company sold securities with a carrying value of $29.7 million and realized net aggregate losses of $0.4 million. The Company held equity securities with an aggregate fair value of $1.2 million and $3.7 million as of March 31, 2022 and December 31, 2021, respectively, within current marketable securities on its condensed consolidated balance sheets. In January 2021, the Company sold a portion of its equity securities for proceeds of $31.3 million. During the three months ended March 31, 2022 and 2021, the Company recorded a loss of $2.5 million and a gain of $28.4 million, respectively, related to its equity securities. Gains and losses related to equity securities are included in other (expense) income, net in the condensed consolidated statements of operations and comprehensive loss. Please refer to Note 9, Commitments and contingencies, for further information. |