The city treasurer of a city of the primary class shall not have on deposit in any bank, capital stock financial institution, or qualifying mutual financial institution at any time more than the maximum amount of the bond given by such bank, capital stock financial institution, or qualifying mutual financial institution if the bank, capital stock financial institution, or qualifying mutual financial institution gives a surety bond, nor in any bank, capital stock financial institution, or qualifying mutual financial institution giving a personal bond, more than one-half of the amount of the bond of such bank, capital stock financial institution, or qualifying mutual financial institution. The amount on deposit plus accretions at any time with any such bank, capital stock financial institution, or qualifying mutual financial institution shall not in either case exceed the paid-up capital stock and surplus of such bank, capital stock financial institution, or qualifying mutual financial institution. The city treasurer shall not be liable for any loss sustained by reason of the failure of any such bonded depository whose bond shall have been duly approved by the city attorney as provided by section 15-846 or which has, in lieu of a surety bond, given security as provided by section 15-847. Section 77-2366 shall apply to deposits in capital stock financial institutions. Section 77-2365.01 shall apply to deposits in qualifying mutual financial institutions.