TQOTW: RESIDENCE NIL RATE BAND

My client has left their main residence to their children through a discretionary trust in their will. If a deed of variation is done within 2 years of the date of death would the residence nil rate band still be available?