If such surplus, or any part thereof, shall remain with the clerk of said court for a term of three months without the rights thereto being fully determined, the clerk may deposit the same in some bank in said county and take an interest-bearing certificate of deposit therefor, and hold the same for the benefit of the person or persons who may be entitled thereto until the rights of the parties thereto have been fully determined.
SDCL 21-48-17