During the six months ended June 30, 2021, we purchased an aggregate of $1.50 billion in bitcoin. In addition, during the three months ended March 31, 2021, we accepted bitcoin as a payment for sales of certain of our products in specified regions, subject to applicable laws, and suspended this practice in May 2021. We may in the future restart the practice of transacting in cryptocurrencies ("digital assets") for our products and services. We account for such non-cash consideration at the time we enter into transactions with our customers in accordance with the non-cash consideration guidance included in the Accounting Standards Codification (“ASC”) 606, Revenue from Contracts with Customers, based on the then current quoted market prices of the digital assets.
We currently account for all digital assets held as a result of these transactions as indefinite-lived intangible assets in accordance with ASC 350, Intangibles—Goodwill and Other. We have ownership of and control over our digital assets and we may use third-party custodial services to secure it. The digital assets are initially recorded at cost and are subsequently remeasured on the consolidated balance sheet at cost, net of any impairment losses incurred since acquisition.
We determine the fair value of our digital assets on a nonrecurring basis in accordance with ASC 820, Fair Value Measurement, based on quoted prices on the active exchange(s) that we have determined is the principal market for such assets (Level 1 inputs). We perform an analysis each quarter to identify whether events or changes in circumstances, principally decreases in the quoted prices on active exchanges, indicate that it is more likely than not that our digital assets are impaired. In determining if an impairment has occurred, we consider the lowest market price of one unit of digital asset quoted on the active exchange since acquiring the digital asset. If the then current carrying value of a digital asset exceeds the fair value so determined, an impairment loss has occurred with respect to those digital assets in the amount equal to the difference between their carrying values and the price determined.
Impairment losses are recognized within Restructuring and other in the consolidated statements of operations in the period in which the impairment is identified. The impaired digital assets are written down to their fair value at the time of impairment and this new cost basis will not be adjusted upward for any subsequent increase in fair value. Gains are not recorded until realized upon sale(s), at which point they are presented net of any impairment losses for the same digital assets held within Restructuring and other. In determining the gain to be recognized upon sale, we calculate the difference between the sales price and carrying value of the digital assets sold immediately prior to sale.