Your definition of a currency is incorrect. Many fiat currencies have experienced rapid devaluations (hyperinflation) while still being recognized as currencies. El Salvador has recognized Bitcoin as legal tender, so it also has at least some recognition as a currency. The IRS has not updated its guidance.