(c) Whenever all that is due upon the bonds and interest thereon, and upon any other notes, or other obligations, and interest thereon, having a charge, lien, or other encumbrance on the revenues of the undertaking and under any of the terms of any covenants or agreements with holders of bonds shall have been paid or deposited as provided therein, and all defaults shall have been cured and made go