how gold shaped medieval trade