Mining accounts for 8 % of GDP , but provides more than 50 % of foreign exchange earnings .