Currency exchange optimization

Do not exchange currencies if they are equal.