If either country has the ability to inflate at will then this will probably not work. Even with the discipline of Germany the Euro almost failed because countries like Greece couldn’t resist, and it may fail yet when some future misbehavior happens.
Yup—this is like two junkies forming a pact to share their drugs.
What could possibly go wrong?