diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/exchange_api_common.c | 17 | 
1 files changed, 2 insertions, 15 deletions
| diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index 3807b997..b895bf9a 100644 --- a/src/lib/exchange_api_common.c +++ b/src/lib/exchange_api_common.c @@ -1336,15 +1336,11 @@ help_purse_deposit (struct CoinHistoryParseContext *pc,    }    if (refunded)    { -    /* We add the amount to refunds here, the original -       deposit will be added to the balance later because -       we still return GNUNET_YES, thus effectively -       cancelling out this operation with respect to -       the final balance. */ +    /* We wave the deposit fee. */      if (0 >          TALER_amount_add (&pc->rtotal,                            &pc->rtotal, -                          amount)) +                          &pc->dk->fees.deposit))      {        /* overflow in refund history? inconceivable! Bad exchange! */        GNUNET_break_op (0); @@ -1415,15 +1411,6 @@ help_purse_refund (struct CoinHistoryParseContext *pc,      GNUNET_break_op (0);      return GNUNET_SYSERR;    } -  if (0 > -      TALER_amount_add (&pc->rtotal, -                        &pc->rtotal, -                        amount)) -  { -    /* overflow in refund history? inconceivable! Bad exchange! */ -    GNUNET_break_op (0); -    return GNUNET_SYSERR; -  }    return GNUNET_NO;  } | 
