If the amount of net income and proceeds of resale distributable exceeds the total interests of all taxing units defined in this subsection (b), the remainder shall be applied to any special benefit assessments to satisfy which the sale was ordered or to which the sale was made subject, and any balance remaining shall accrue to the purchasing unit.
When any real property that has been purchased as provided in this section is permanently dedicated to use for a public purpose, the purchasing unit shall make settlement with other taxing units having an interest in the property (as defined in this subsection) in such manner and in such amount as may be agreed upon by the governing bodies; and if no agreement can be reached, the amount to be paid shall be determined by a resident judge of the superior court in the district in which the property is situated.
Nothing in this section shall be construed as requiring the purchasing unit to secure the approval of other interested taxing units before reselling the property or as requiring the purchasing unit to pay other interested taxing units in full if the net income and resale price are insufficient to make such payments.
Any taxing unit purchasing property at a foreclosure sale may, in the discretion of its governing body, instead of following the foregoing provisions of this section, make full payment of the purchase price, and thereafter it shall hold the property as sole owner in the same manner as it holds other real property, subject only to taxes and special assessments, with penalties, interest, and costs, and liens arising from C-PACE assessments under Article 10B of Chapter 160A of the General Statutes, to which the sale was made subject.
N.C. Gen. Stat. § 105-376