Many developing nations have benefited from major price increases for the commodities they export , and have worked to diversify their economies to ease the ups and downs that affect commodity markets .