Significant challenges remain: relations with the central government in Baghdad remain vexed, not least over how to share oil revenue and the precise demarcation of the border between the Kurdish region and the rest of the country.
Yet the lion's share of oil-price weakness is a by-product of an increasingly shaky global economy.
But now, at last, they seem close to agreement on how to share the oil revenues.
The deficit ends four years when it could claim to be in surplus, on a modest scale, assuming a large share of oil revenue and not including capital spending.
One of the new measures reduces the share of oil revenues that go to the states and municipalities closest to the fields, aiming to spread the wealth more widely.
The same document shows that the percentage deficit for the UK as a whole is greater than for Scotland alone when a geographical share of oil is included in the Scottish figures.
You can see a population share of oil and gas tax too, and that still looks grim, but neither of these figures tells us anything about the fiscal position at the heart of the political debate about Scottish independence.
If it had been an independent country over the past decade, with a geographical share of oil and gas revenues, the impact of the recent fall in North Sea output on Scotland's tax revenues and overall economic growth would have been more dramatic.
Another force behind the merger mania may be a perverse result of weak oil-share prices: it is now cheaper to buy oil reserves on Wall Street than by drilling your own well.
Buying a stake will allow oil companies to add their share of Rosneft's oil and gas to their books immediately.
Mr Correa also says that the state will sharply raise its share of the oil extracted by energy companies.
Their subjects would like a larger share of the oil wealth, they believe.
And he said he wanted foreign investors to pay a fairer share for the oil they extracted from Ecuadorean soil.
India, with about 17% of world population and a current 3.6% share of world oil consumption might add a percent or two.
FORBES: Why Oil Prices Rose in the Spring of 2008 and Will Rise Again
The report has assumed Scotland could expect to have the share of offshore oil and gas revenue that comes from Scottish waters.
And despite what sound like large investments in new oil fields in Russia and elsewhere, Saudi Arabia's share of the world oil market will actually grow over the next two decades simply because it has such huge reserves of cheap oil.
In part, this is due to a quirk of the rules that oblige Western oil firms to share the crude they produce with state-owned oil firms in many countries.
ECONOMIST: Rising oil price equals rising profits, right? Wrong
What's more, oil's share of the global energy market is down from almost 50% at the time of the oil shock of 1973.
Bars of olive-oil soap share counter space with piles of lokum (Turkish Delight) and slabs of amber-hued honeycomb.
With environmental costs and legal risks rising, share prices for some oil companies have deservedly plummeted.
The bigger question, though, is where both oil and share prices are headed after that.
Oil prices go up, most oil company share prices go up with it.
FORBES: Brazil Oil Giant Petrobras Blames Dollar For Collapse
Ahmadinejad entered office two years ago after running a populist campaign pledging to share Iran's oil and gas revenues with the Iranian people.
Cambridge Energy Research Associates, a consultancy, says Canada's share of the American oil market could grow to 37% by 2035 from 19% last year.
By 2008 the market share for coal, oil and natural gas, along with nuclear, had grown to 92.5% of total primary energy in the U.S. with the remainder coming from renewables.
But that needs to be seen in the context of another set of government figures that suggest Scots contribute more, when you include a geographical share of North Sea oil and gas revenue.
And yet only nuclear power, which went from zero to about 8.5% of the U.S. primary energy over that time frame, has managed to steal significant market share from coal, oil and natural gas.
The tariff structure has, predictably, led to a loss in market share to the roads, oil pipelines and coastal shipping.
ECONOMIST: Indian railways: There's no such thing as a free ride | The
Her nationalisation of most of Repsol's share of YPF, an oil company, in April, halted but did not reverse the decline.
应用推荐