diff --git a/tests/py/test_callbacks.py b/tests/py/test_callbacks.py index e0d3ddea26..547849d08b 100644 --- a/tests/py/test_callbacks.py +++ b/tests/py/test_callbacks.py @@ -117,7 +117,7 @@ def test_coinbase_success_callback(self, re): assert re.call_count == 1 assert re.call_args[0][0] == self.db assert re.call_args[0][1].id == route.id - assert re.call_args[0][2:4] == (D('-0.99'), D('0.01')) # Amount, Fee + assert re.call_args[0][2:4] == (D('0.99'), D('0.01')) # Amount, Fee assert re.call_args[0][4].id == alice.id assert re.call_args[0][5] == 'succeeded' # Status diff --git a/www/callbacks/coinbase.spt b/www/callbacks/coinbase.spt index abbbdd8872..5e16c48ce8 100644 --- a/www/callbacks/coinbase.spt +++ b/www/callbacks/coinbase.spt @@ -40,7 +40,7 @@ if order: amount = int(order['total_payout']['cents']) * D('0.01') fee = int(order['total_native']['cents']) * D('0.01') - amount - record_exchange(website.db, route, -amount, fee, participant, 'succeeded') + record_exchange(website.db, route, amount, fee, participant, 'succeeded') # TODO - handle mispayments [---] text/plain