Its chemical formula is HgF2 . It has mercury and fluoride ions in it .
Mercury fluoride has the molecular formula HgF2 .