The JCPOA was, if you boil the 109 pages down to two sentences, basically
"If you heavily restrict uranium enrichment for 10 to 15 years, and don't have anything weapons-grade, China, Europe, the US and Russia will actually do trade with you. If you don't, we won't."