You need to hold your shares before the ex date to get the warrants. I personally dont think selling anytime before that is wise.