On Tuesday, dYdX, a decentralized perpetual exchange, said that one of its on-chain trading platforms had been compromised.