Update functions_exchange.php

changed the way commission is calculated