At any time prior to the sale, a person having a lien on the property which is junior to the mortgage will be entitled to an assignment of all the interest of the holder of the mortgage, by paying the holder the amount secured, with interest and costs, together with the amount of any other liens of the same holder which are paramount to the person's. The person may then proceed with the foreclosure, or discontinue it, at the person's option.
Iowa Code § 654.8
Referred to in §654.17A