The spread of illegally manufactured fentanyl has driven overdose deaths to unprecedented levels in the United States and Canada. It has also changed the production function for drug traffickers, most notably by radically reducing the costs of raw materials for those producing illegal opioids.