DeFi exchange dydX announced that its website had been compromised after it was revealed the company is selling a portion of its trading software.