During the Ming dynasty, silk trades made a large surplus of foreign exchange and therefore saved the shortfall of the state treasury.