Oil has supplanted forestry as the mainstay of the economy , providing a major share of government revenues and exports .