diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 96546ada7..b53222dbf 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -1921,8 +1921,8 @@ 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 -= coin->txfee - 0.001; - if ( balance > coin->txfee && balance >= 1000000 ) + balance -= txfee - 0.001; + if ( balance > txfee && balance >= 1000000 ) { halfval = (balance / 100) * 45; argjson = cJSON_CreateObject();