Its chemical formula is CdF2 . It has cadmium and fluoride ions in it . Cadmium fluoride ( CdF2 ) is a mostly water-insoluble source of cadmium used in oxygen-sensitive applications , such as the production of metallic alloys .