fixed logic/math issue with selling currencies for incompatible currency pairs