The following table summarizes the total gain (loss) recognized in the consolidated statement of income from our foreign exchange derivative contracts by location for the periods indicated (in millions): | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | | 2024 | | 2023 | | 2022 | | Foreign exchange contracts designated as cash flow hedges recognized in net revenues | $ | (54) | | | $ | 56 | | | $ | 140 | | | Foreign exchange contracts designated as cash flow hedges recognized in cost of net revenues | (2) | | | (3) | | | (2) | | | | | | | | Foreign exchange contracts not designated as hedging instruments recognized in interest income and other, net | 22 | | | 4 | | | 20 | | | Total gain (loss) recognized from foreign exchange derivative contracts in the consolidated statement of income | $ | (34) | | | $ | 57 | | | $ | 158 | |
The following table summarizes the total gain recognized in the consolidated statement of income from our interest rate derivative contracts by location for the periods indicated (in millions): | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | | 2024 | | 2023 | | 2022 | | | | | | | Interest rate contracts designated as cash flow hedges recognized in interest income and other, net | $ | 8 | | | $ | 11 | | | $ | 9 | | Interest rate contracts designated as fair value hedges recognized in interest income and other, net | 2 | | | — | | | — | | Total gain recognized from interest rate derivative contracts in the consolidated statement of income | $ | 10 | | | $ | 11 | | | $ | 9 | |
The following table summarizes the total gain (loss) recognized in the consolidated statement of income due to changes in the fair value of the warrant for the periods indicated (in millions): | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | | 2024 | | 2023 | | 2022 | | Gain (loss) attributable to changes in the fair value of warrant recognized in gain (loss) on equity investments and warrant, net | $ | 158 | | | $ | 150 | | | $ | (230) | |
|