Exchange-rate management in theory and practice