(d) Special rules for traded digital assets
(1) In general Notwithstanding subsection (b)(1) (and except as provided in subsection (b)(2)), in the case of any specified possession resident individual for any taxable year, any gain recognized (directly or indirectly) on the disposition of traded digital asset property during such taxable year—
(A) shall, except as provided in subparagraph (B), be treated as gain from sources within the United States, and
(B) shall be treated as gain from sources within the relevant possession (and not from sources within the United States) to the extent that the taxpayer—
(i) timely provided the information specified in subsection (c)(3) to the Secretary with respect to such property, and
(ii) demonstrates to the satisfaction of the Secretary that such gain is properly attributable to the increase in the value of such property during periods that such individual was a bona fide resident of such possession.
(A) In general In the case of any electing individual—
(i) such individual shall recognize gain on any widely traded digital assets held by such individual as of the close of the taxable year preceding the taxable year described in subparagraph (B) as if such assets were sold for their fair market value as of such time,
(ii) proper adjustment shall be made in the amount of any gain or loss subsequently realized for gain taken into account under clause (i), and
(iii) paragraph (1) shall not apply to any disposition of a widely traded digital asset by such taxpayer (without regard to whether clause (i) applied to such asset).
(B) Electing individual For purposes of this paragraph, the term electing individual means any specified possession resident individual who elects (in such manner as the Secretary may provide) the application of this paragraph not later than the due date for the return of tax for the taxable year for which such individual first becomes a bona fide resident of the relevant possession.
(2) Election for widely traded digital assets
(3) Specified possession resident individual For purposes of this subsection, the term specified possession resident individual means, with respect to any taxable year, any citizen of the United States who—
(A) is a bona fide resident of Guam, American Samoa, the Northern Mariana Islands, Puerto Rico, or the Virgin Islands for such taxable year, and
(B) was a resident of the United States at any time during the preceding 10 taxable years.
(4) Relevant possession For purposes of this subsection, the term relevant possession means, with respect to any specified possession resident individual for any taxable year, the possession referred to in paragraph (3)(A) with respect to which such individual is a bona fide resident for such taxable year.