Share more code between buying/selling goods.
Use a constant for the goods traded multiplier.
Increase the goods traded multiplier to 50 and apply it to the port credits as well as upgrade, this will mean ports have more chance of upgrading and more money through usage.