The fund when deposited shall be held by the county treasurer subject to the final judgment of the court in the action or proceeding. In the judgment the court may direct payment from the fund sums it finds to be due to any of the parties involved. If the county involved has been made a party, the court may direct the retention of a sum by the county and also adjudge that the county pay to the parties entitled thereto a sum as the court finds to be due, which sum may not exceed the amount which the county would have originally received from the tax collection or proceeding and at the Category A rate of interest as established in § 54-3-16 thereon from that date. In these cases the amount adjudged to be paid by the county shall be paid immediately unless stayed by appeal and the sum paid shall be charged proportionately to the taxing districts involved.
SDCL 10-27-7