jl777 7 years ago
parent
commit
8d8d85abf1
  1. 5
      iguana/exchanges/LP_instantdex.c
  2. 2
      iguana/exchanges/LP_utxo.c

5
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 )

2
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;
}
}

Loading…
Cancel
Save