I agree with your premise. I think we should divest from scammy cryptocurrency companies. I also think we should divest from scammy banks, and companies that supply weapons to be used for killing people overseas as well (specifically referring there to companies like Raytheon), and companies that violate our privacy and manipulate our society negatively (i.e. Facebook).
Obviously if you release something with an open source or FOSS license, then anyone is free to use it though. I'm against any kind of morality clause for free software.