New Gold Protocol lost $2 million in a flash loan exploit shortly after launch, as hackers exploited smart contract vulnerabilities.