This temporary collapse has shaken public confidence and endangered the balance sheets of Ukrainian banks and companies that have hard-currency debts. It has also undermined the calculations on which Ukraine’s programs with the International Monetary Fund are based.