Even if fiat currencies are replaced by products like central bank digital currencies (CBDCs), foreign exchange markets would still exist, just in a new form surely?
If you think about it, countries will still have different monetary policies, economic conditions, and interest rates, meaning currency exchange (digital or otherwise) will still be essential for so much trade and investment.
I don’t think capitalism is going anywhere my friend.