Optimal currency basket in a world of generalized floating