Before the Ottoman invasion of Egypt the ruler or viceroy appointed a clergyman to officially supervise the minting process he was called The Judge or AlKady in Arabic . This was to guarantee the legitimacy of the dinars and dirhams as regards weight and fineness the Kady then delegated a trustworthy worker to run the mint house he was called the Caretaker Metwally in Arabic he was responsible before the Kady for all technical and administrative affairs as he was also the keeper Amin of the mint house . During the Ottoman era the Sultan had the right to appoint a eunuch Agha for the post of keeper Amin of the mint house .