The function of the IMF and World Bank was essentially to make other countries borrow in dollars, not in their own currencies, and to make sure that if they could not pay their dollar-denominated debts, they had to impose austerity on the domestic economy - while subsidizing their import and export sectors and protecting foreign investors, creditors and client oligarchies from loss.