Monetary aspects of Walras's law and the stock-flow problem