In a swap arrangement, the US Fed provides dollars to a foreign central bank, which, at the same time, provides the equivalent funds in its currency to the Fed, based on the market exchange rate at the time of the transaction.