they went bankrupt buying "friendship prices" for goods from other countries basically overvalued cuban sugar or north korean minerals while also bankrolling their own command economy and giving foreign aid to other nations.
United States