Whenever any warrant of a district is presented to the treasurer for payment when funds are not available for its payment, it shall thereafter draw interest at a rate determined by resolution of the board but not exceeding 8 percent per year until public notice is given that funds are available for its payment.