Lukoil—the second largest oil producer in Russia—sold its stake in Kazakh oil company Caspian Investments Resources to China Petroleum & Chemical Corporation, reported UPI.

The deal was closed amid worsening conditions in both Kazakhstan and China, as both countries have recently seen the value of their currencies plummet.

The agreement is for a 50% stake in Caspian and is reported to have cost China Petroleum & Chemical (also known as Sinopec), just over $1b.

“That’s a great piece of luck for Lukoil that Sinopec had closed the deal after all, given worsened expectations over the Chinese economy,” said Maxim Moshkov, an energy analyst at UBS Group AG in Moscow.

The new deal seals Chinese dominance over Caspian Investments Resources, as Sinopec and affiliated companies already own the other half of the group, noted Bloomberg

Lukoil has reported that cumulative production since 2006 has resulted in 95m barrels of crude oil and about 1bcf of natural gas.