The macroeconomics of social pacts