Of course, the root cause here is definitely getting dependent on that in the first place.
This is not Venezuela's problem. The problem is that Maduro is trying to control capital flight by fixing the exchange rate. The currency is not free floating and when companies want to buy goods overseas, they have to go to the government and ask permission to exchange their Bolivars to Dollars. This causes two problems, the government is really slow to approve the conversion of Bolivars to Dollars and the exchange rate does not reflect the real world value of Bolivars. Every time someone exchanges Bolivars to Dollars, the government loses a lot of money. The government does not want this to happen so they are not approving a lot of outbound capital. The import business has ground to a halt because of this.
I think you may be thinking of Argentina? (Not that you're describing events in Argentina correctly either, but at least some of the bits are right.)
I wonder whether there was an earlier situation like that for Venezuela that got resolved beforehand, which would explain why I remember differently, but I found no source for that. Maybe the ISDS rulings against it. I'd delete the comment above if I could.