While any indebtedness under § 51A-3-26 exists, all dividends, interest, or profits on such stock, if any, shall be credited by the bank on such indebtedness in the event the bank has exercised its rights to acquire or purchase the stock. The lien hereby created in favor of the bank may be foreclosed by such bank in the manner provided by law for the foreclosure of liens.
SDCL 51A-3-28