Ukraine is a major grain exporter, and also has oil and other mineral wealth. On the down side, there’s been major infrastructure damage, and their currency is crap. Once they’ve rebuilt, they’ll be making money to repay.
There hasn’t been much damage to Russian petroleum production, nor to its export facilities. I am a bit surprised by that actually, as there have been attacks on export facilities near Leningrad a few months ago. There are also oil terminals in the Black Sea, which should be in easy range. I can only assume the neighbors (Turkey say) wouldn’t like that.
The recent attacks are on refineries, which produce fuel and chemicals from petroleum. The bulk of Russias foreign income comes from exports of plain petroleum, refined products are a marginal export stream.