aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-03-14 14:47:55 +0100
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-03-16 11:08:52 +0100
commitb7c6edb0e5218a3f09e11ca3c6455eccd958e959 (patch)
tree994385a28f664d54af822b317ae9fa4c4598906b /src
parent7a417e1de07ccc6f8fdbe6519fa0041a5c1dbbb8 (diff)
httpd: Use the right fee for deposit transaction
Diffstat (limited to 'src')
-rw-r--r--src/mint/taler-mint-httpd_db.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c
index 5e57e152d..df68b6570 100644
--- a/src/mint/taler-mint-httpd_db.c
+++ b/src/mint/taler-mint-httpd_db.c
@@ -74,7 +74,6 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection,
struct TALER_Amount spent;
struct TALER_Amount value;
struct TALER_Amount fee_deposit;
- struct TALER_Amount fee_withdraw;
struct TALER_Amount fee_refresh;
struct MintKeyState *mks;
struct TALER_MINT_DenomKeyIssuePriv *dki;
@@ -113,7 +112,7 @@ TALER_MINT_db_execute_deposit (struct MHD_Connection *connection,
}
tl = TALER_MINT_DB_get_coin_transactions (db_conn,
&deposit->coin.coin_pub);
- spent = fee_withdraw; /* fee for THIS transaction */
+ spent = fee_deposit; /* fee for THIS transaction */
/* FIXME: need to deal better with integer overflows
in the logic that follows! (change amount.c API! -- #3637) */
spent = TALER_amount_add (spent,