(a) Except as provided in subsection (b) of this section, regular interest is payable on member contributions at the rate of 4% a year, compounded annually, until retirement or withdrawal of the accumulated contributions.

(b) No further interest shall be paid on member contributions after membership ends if the former member is not eligible to receive a vested allowance under Title 29, Subtitle 3 of this article.