Browse Source

Test

pass-iguana-arg
jl777 7 years ago
parent
commit
d705c14237
  1. 6
      iguana/exchanges/LP_transaction.c

6
iguana/exchanges/LP_transaction.c

@ -1921,9 +1921,9 @@ char *LP_autosplit(struct iguana_info *coin)
else balance = LP_RTsmartbalance(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))));
if ( balance > txfee && balance >= (1000000 - (txfee - 100000)) )
balance -= (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;
argjson = cJSON_CreateObject();

Loading…
Cancel
Save