Browse Source

Test

pass-iguana-arg
jl777 7 years ago
parent
commit
03e1855fac
  1. 4
      iguana/exchanges/LP_transaction.c

4
iguana/exchanges/LP_transaction.c

@ -1919,7 +1919,7 @@ char *LP_autosplit(struct iguana_info *coin)
if ( coin->electrum != 0 )
balance = LP_unspents_load(coin->symbol,coin->smartaddr);
else balance = LP_RTsmartbalance(coin);
//printf("%s balance %.8f\n",coin->symbol,dstr(balance));
printf("%s balance %.8f\n",coin->symbol,dstr(balance));
balance -= coin->txfee - 0.001;
if ( balance > coin->txfee && balance >= 1000000 )
{
@ -1938,7 +1938,7 @@ char *LP_autosplit(struct iguana_info *coin)
jadd(argjson,"outputs",outputs);
jaddnum(argjson,"broadcast",strcmp(coin->symbol,"BTC") != 0);
jaddstr(argjson,"coin",coin->symbol);
//printf("autosplit.(%s)\n",jprint(argjson,0));
printf("halfval %.8f autosplit.(%s)\n",dstr(halfval),jprint(argjson,0));
retstr = LP_withdraw(coin,argjson);
free_json(argjson);
return(retstr);

Loading…
Cancel
Save