From 6855611f6cad1b75adf434ac93aa6e08d8ed63a9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 16 May 2018 13:53:48 +0300 Subject: [PATCH] Fix BTC autosplit --- iguana/exchanges/LP_transaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 85ff6fbca..35c366513 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -1922,7 +1922,7 @@ char *LP_autosplit(struct iguana_info *coin) if ( (txfee= coin->txfee) == 0 ) // BTC txfee = LP_txfeecalc(coin,0,500); balance -= (txfee + 100000); - printf("balance %.8f, txfee %.8f, threshold %.8f\n",dstr(balance),dstr(txfee),dstr((1000000 - (txfee + 100000)))); + //printf("balance %.8f, txfee %.8f, threshold %.8f\n",dstr(balance),dstr(txfee),dstr((1000000 - (txfee + 100000)))); if ( balance > txfee && balance >= (1000000 - (txfee + 100000)) ) { halfval = (balance / 100) * 45; @@ -1938,7 +1938,7 @@ char *LP_autosplit(struct iguana_info *coin) jaddnum(item,coin->smartaddr,dstr(balance - 2*halfval)); jaddi(outputs,item); jadd(argjson,"outputs",outputs); - jaddnum(argjson,"broadcast",strcmp(coin->symbol,"BTC") != 0); + jaddnum(argjson,"broadcast",1); jaddstr(argjson,"coin",coin->symbol); //printf("halfval %.8f autosplit.(%s)\n",dstr(halfval),jprint(argjson,0)); retstr = LP_withdraw(coin,argjson);