That was the part of Bretton Woods agreement, 1944.
https://en.wikipedia.org/wiki/Bretton_Woods_Conference