The Securities and Exchange Commission and Binance have come to an agreement that will allow the cryptocurrency exchange to continue operating in the US until a lawsuit filed by the SEC earlier this month is resolved. The regulator sued Binance and founder Changpeng Zhao, better known as CZ, on June 5th, alleging the company had artificially inflated trading volumes, mixed and diverted customer assets and failed to restrict US investors from trading on Binance.com when they were supposed to stay on a separate US system.

After announcing the charges, the SEC sought to freeze Binance’s US assets. The regulator said the move was necessary to protect customer funds and prevent the company from potentially moving money abroad. Binance, meanwhile, argued an asset freeze would put it out of business in the US. On Tuesday, the judge overseeing the litigation ordered the two sides to come to a compromise that would safeguard customer assets.

In a court filing seen by The New York Times, the SEC said Friday that Binance had agreed to move all assets belonging to US customers stateside. Additionally, the company’s US operation is prohibited from providing access or control of domestic assets or funds to Binance’s international operation or Zhao. Until the ligation is resolved, Binance.US is "solely" allowed to transfer assets “to make payments for expenses or to satisfy obligations incurred in the ordinary course of business.” Additionally, the exchange is required to create new customer wallets which its international employees can’t access. The deal still needs approval from Judge Amy Berman – and won’t resolve the SEC lawsuit even if it’s put in place.