All interest on funds deposited under sections 366.01, subdivision 4, and 366.07 to 366.09 shall be credited to the respective town funds.