(1) While solvent and complying with this code an insurer shall be entitled:
(a) To collect and receive interest, dividends, and payments accruing upon assets so held on deposit for its account; and (b) From time to time, to exchange and substitute for any of such assets, other assets eligible for deposit.
(2) If the insurer fails to cure a deficiency when required, is insolvent, is subject to delinquency proceedings, or is in default as to taxes or other charges due to this state under law, the commissioner shall collect such interest, dividends, and payments and add them to the insurer's deposit.