Before revision: We derive a closed form solution for an optimal control of interbank lending subject to terminal probability constraints on the failure of  a bank.
After revision: We derive a closed form solution for an optimal control problem related to an interbank lending schemes subject to terminal probability constraints on the failure of a bank.