
This answer is not quite correct. The metal that replaces another metal in an ionic compound must become a cation whereas the original metal cation must become a non-ionic metal. The metal that replaces the original metal must lose electrons more readily (at a lower energy) than the metal that is the original cation.