We study optimal equity infusions into a financial system represented as a hierarchical network with two classes of banks, prone to both the risk of insolvencies and the risk of runs by short term creditors. The government seeks to minimize, under budget constraints, the magnitude of the total...