From 1148ddda8e3dbf0f811ab414dd86cbd44c7c480e Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 24 Jul 2017 17:48:39 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index f76526cac..ae73099cb 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -21,7 +21,15 @@ uint64_t LP_txfeecalc(char *symbol,uint64_t txfee) { - if ( txfee == 0 && (txfee= LP_getestimatedrate(symbol) * LP_AVETXSIZE) < LP_MIN_TXFEE ) + struct iguana_info *coin; + if ( strcmp(symbol,"BTC") == 0 ) + { + if ( txfee == 0 && (txfee= LP_getestimatedrate(symbol) * LP_AVETXSIZE) < LP_MIN_TXFEE ) + txfee = LP_MIN_TXFEE; + } + else if ( (coin= LP_coinfind(symbol)) != 0 ) + txfee = coin->txfee; + if ( txfee < LP_MIN_TXFEE ) txfee = LP_MIN_TXFEE; return(txfee); }