The Allegheny National Bank was selected as one of the depositories of the city of Pittsburg for a term of four years and two months, beginning December 1, 1900, and ending January 31, 1905. To secure the safe custody of all moneys to be deposited with it during that period, the bank éxecuted its bond to the city, upon which Joshua Rhodes, deceased, was one of the sureties. On January 31, 1905, — the day the term of the depository expired — there was on deposit with it to the credit of the city a balance of $1,014,635.32. The bank was rechosen as one of the city’s depositories, and the balance to its credit at the close of business on January 31, 1905, was entered by the bank in the individual transfer ledger on February 1, 1905, as a deposit to the credit of the city. For the new term of the depository, beginning February 1, 1905, and to end January 31, 1909, it gave a new bond to the city upon which Rhodes was not a surety. Between February 1, 1905, and May 16, 1908, — the day the bank closed its doors — the city deposited with it, in addition to the $1,014,635.32 credited to it on February 1, 1905, $22,401,147:86 and during that period checked out $21,868,829.24. On March 17, 1908, the balance to its credit was reduced to $310,515.93. On May 18-, 1908, the city of Pittsburg entered judgment against the sureties on the bond covering the period between December 1, 1900, and January 31, 1905, and from the order of the court opening it the city has appealed.
If on February 1,. 1905, the city had drawn its check for the whole amount of the balance to its credit in the bank at the close of business the day before, and, upon receiving cash in payment of the check, had redeposited the money with the bank, just starting on a second or new term' as a depository, the sureties on the present bond *399would unquestionably have been fully discharged, for the city would have received all of the money due it from the bank at the expiration of the first period, for which alone the sureties were bound. The condition of their bond would have been performed. This, in effect, is what was done. The bank, on February 1, 1905, formally entered as a deposit to the credit of the city the exact balance due it at the close of business the day before, and the city, having accepted this as a deposit to its credit, immediately began to check against it. From February 1, 1905, to May 16, 1908, as already stated, it made additional deposits amounting to more than $22,000,000, and checked out on its account during the depository’s second period more than $21,000,000. In thus checking against its account it drew out what it had on deposit on February 1, 1905. The learned judge below correctly held that there is nothing in the case to take it out of the ordinary rule of the application of payments as stated in McKee’s Executors v. Com., 2 Grant, 23, and which applies to a bank as well as to others: Clayton’s Case, 1 Merivale, 572. The order of the court opening the judgment is affirmed with costs to the appellees.