I am buying an asset that is pegged to the USD dollar. That is not illegal neither is buying USD denominated bonds. In fact the goverment even has sold USD denominated bonds.