The fund established by section 298.223 shall be invested pursuant to law and the net interest and dividends arising from the investment shall be included and become part of the fund.