diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index dfba0bc6b..5bc8dd618 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -454,10 +454,7 @@ int32_t LP_claim_submit(void *ctx,cJSON *txids,int64_t *sump,struct iguana_info jaddnum(item,"deposit",dstr(LP_value_extract(vout0,0))); if ( coin->electrum == 0 ) interest = dstr(satoshis) - dstr(LP_value_extract(vout0,0)); - else - { - interest = dstr(LP_komodo_interest(utxotxid,satoshis)); - } + else interest = dstr(LP_komodo_interest(utxotxid,satoshis)); jaddnum(item,"interest",interest); printf("%.8f %.8f %.8f\n",dstr(satoshis),dstr(LP_value_extract(vout0,0)),dstr(LP_komodo_interest(utxotxid,satoshis))); if ( claimtime <= expiration ) diff --git a/iguana/exchanges/LP_utxo.c b/iguana/exchanges/LP_utxo.c index 90d583aa2..37caf87bd 100644 --- a/iguana/exchanges/LP_utxo.c +++ b/iguana/exchanges/LP_utxo.c @@ -228,7 +228,7 @@ uint64_t LP_value_extract(cJSON *obj,int32_t addinterest) else { interest = LP_komodo_interest(txid,value); - char str[65]; printf("txid.%s %.8f + %.8f\n",bits256_str(str,txid),dstr(value),dstr(interest)); + char str[65]; printf("(%s) txid.%s %.8f + %.8f\n",jprint(obj,0),bits256_str(str,txid),dstr(value),dstr(interest)); value += interest; } }