How does Egypt prevent people from arbitraging their currency?
Used to be capital controls. You could only buy dollars (or any other foreign currency) through official channels at the official favorable rates by providing documentation displaying need for said currency (e.g. Travel or import documents).