No deposits in excess of the amount insured or guaranteed by the Federal Deposit Insurance Corporation shall be made to accumulate in any bank, capital stock financial institution, or qualifying mutual financial institution designated as a depository unless and until the county judge, clerk of the county court, or clerk of the district court, as the case may be, has received from such depository as security for the prompt repayment by the depository of his or her respective deposits in excess of the amount insured or guaranteed by the Federal Deposit Insurance Corporation either a surety bond in form and with corporate sureties approved by the county judge or judges or by formal resolution of the county board, as the case may be, or in lieu thereof, the giving of security as provided in the Public Funds Deposit Security Act. 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.