1. If you hold a large amount of currency now and are worried about currency depreciation, you can short the currency in the foreign exchange market. Although the currency cash you hold has depreciated, you make money on foreign exchange futures and foreign exchange options. Deducting transaction costs can almost reduce losses, depending on the basis of the two. 2. If the currency appreciates, the cash currency is earned, but the futures or options are lost, which can also offset some. So is currency appreciation.
But if we want to completely avoid foreign exchange risks, it does not exist, and neither banks nor countries can do it.