A derivative proceeding may not be discontinued or settled without the court's approval. If the court determines that a proposed discontinuance or settlement will substantially affect the interests of the corporation's shareholders or a class of shareholders, the court shall direct that notice be given to the shareholders affected.
SDCL 47-1A-745