You need to look into the company redundancy procedure, they can't just put you at risk then get rid of you on 21st July, there are rules in place for the notice that has to be given and I'm sure it's 90 days, or depends upon your lenght of employment, let me know if you want me to double check...