Browse Source

test

etomic
jl777 7 years ago
parent
commit
999529edf7
  1. 4
      iguana/exchanges/LP_instantdex.c
  2. 2
      iguana/exchanges/LP_nativeDEX.c

4
iguana/exchanges/LP_instantdex.c

@ -253,7 +253,9 @@ char *LP_instantdex_claim(struct iguana_info *coin)
item = cJSON_CreateObject();
jaddbits256(item,"txid",utxotxid);
jaddnum(item,"deposit",dstr(LP_value_extract(vout0,0)));
jaddnum(item,"interest",dstr(satoshis)-dstr(LP_value_extract(vout0,0)));
if ( coin->electrum == 0 )
jaddnum(item,"interest",dstr(satoshis)-dstr(LP_value_extract(vout0,0)));
else jaddnum(item,"interest",dstr(LP_komodo_interest(utxotxid,satoshis)));
if ( claimtime <= expiration )
{
printf("claimtime.%u vs %u, wait %d seconds to %s claim %.8f\n",claimtime,expiration,(int32_t)expiration-claimtime,bits256_str(str,utxotxid),dstr(satoshis));

2
iguana/exchanges/LP_nativeDEX.c

@ -17,7 +17,7 @@
// LP_nativeDEX.c
// marketmaker
//
// verify claim works
// verify claim works (display interest in electrum)
// big BTC swaps
// https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG
//

Loading…
Cancel
Save