It works like this, similar to what you said, but different:
1. Exporters get an excess of USD, they deposits it in a state-owned commerical bank.
2. PBOC takes the excess of USD from state-owned commerical banks (some amount)
3. PBOC gives state-owned commerical banks RMB according to their needs (another, different amount)
4. PBOC gives also gives other state-owned banks RMB according to their needs (even another, different amount)
There's no "sale" of RMB for USD, it's wrong to just project how it happens in the West to China, the state takes enough USD to cut the excess from circulation and the, and the state allocate enough RMB to supply banks with the capital they need to give out the planned loans.
