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, | | 2021 | | 2020 | | 2019 | Foreign exchange contracts designated as cash flow hedges recognized in net revenues | $ | (65) | | | $ | 15 | | | $ | 81 | | Foreign exchange contracts designated as cash flow hedges recognized in cost of net revenues | 4 | | | — | | | — | | | | | | | | Foreign exchange contracts not designated as hedging instruments recognized in interest and other, net | 11 | | | (18) | | | (8) | | Total gain (loss) recognized from foreign exchange derivative contracts in the consolidated statement of income | $ | (50) | | | $ | (3) | | | $ | 73 | |
The following table summarizes the total gain (loss) 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, | | 2021 | | 2020 | | 2019 | Gain (loss) from interest rate contracts designated as fair value hedges recognized in interest and other, net | $ | — | | | $ | — | | | $ | 34 | | Gain (loss) from hedged items attributable to hedged risk recognized in interest and other, net | — | | | — | | | (34) | | Gain (loss) from interest rate contracts designated as cash flow hedges recognized in interest and other, net | 2 | | | — | | | — | | Total gain (loss) recognized from interest rate derivative contracts in the consolidated statement of income | $ | 2 | | | $ | — | | | $ | — | |
The following table summarizes the total gain 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, | | 2021 | | 2020 | | 2019 | Gain attributable to changes in the fair value of warrant recognized in gain (loss) on equity investments and warrant, net | $ | 354 | | | $ | 770 | | | $ | 133 | |
|