When copper pyrite is roasted in excess of air, a mixture of Cu2S and FeO are formed. FeO is present as impurity. This can be removed as slag during Smelting. The flux added to form slag is
Silica which is an acidic flux
FeO (Basic gangue) impurity is mixed with SiO2 (acidic flux) to form a fusible slag
FeO +SiO2 → FeSiO3
(slag)