When you sell your flat, whatever CPF (including grants) that you have used to pay for the flat, it shall be refunded to your CPF plus accrued interest. When you buy the next flat, this CPF money can still be used. Since the first flat is resale flat, there is no levy when you get a BTO flat