From ae08bc3dec21c98f55966d0183ddc3a01fdd944f Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 20 Feb 2018 20:22:39 +0200 Subject: [PATCH] 100 sats floor --- iguana/exchanges/LP_rpc.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index ff001e372..97d8b7a4b 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -631,7 +631,7 @@ again: if ( strcmp(coin->estimatefeestr,"estimatesmartfee") == 0 && (rate= jdouble(errjson,"feerate")) != 0 ) { printf("extracted feerate %.8f from estimatesmartfee\n",rate); - rate /= 1024; + rate /= 1024.; } free_json(errjson); } @@ -639,8 +639,13 @@ again: rate = atof(retstr) / 1024.; if ( rate != 0. ) { - //if ( rate < 0.00000020 ) - // rate = 0.00000020; + if ( strcmp("BTC",coin->symbol) == 0 ) + { + if ( rate < 0.00000100 ) + rate = 0.00000100; + } + else if ( rate < 0.00000020 ) + rate = 0.00000020; rate *= 1.5; if ( coin->electrum != 0 ) rate *= 1.5;