As foreign firms exporting to China accepted payment in renminbi, the currency piled up in their bank accounts in Hong Kong. That led to the next step: Foreign firms wishing to invest in China were allowed to tap those deposits by issuing renminbi-denominated bonds, and eligible offshore financial institutions were permitted to invest renminbi funds in China’s interbank bond market.