Browse Source

Test

etomic
jl777 8 years ago
parent
commit
46a2edc92b
  1. 3
      iguana/exchanges/LP_ordermatch.c

3
iguana/exchanges/LP_ordermatch.c

@ -590,7 +590,8 @@ struct LP_utxoinfo *LP_bestutxo(double *ordermatchpricep,int64_t *bestsatoshisp,
for (i=0; i<numasks; i++) for (i=0; i<numasks; i++)
{ {
item = jitem(asks,i); item = jitem(asks,i);
if ( (price= jdouble(item,"price")) > SMALLVAL && price <= maxprice ) price = jdouble(item,"price");
if ( LP_pricevalid(price) > 0 && price*1.0001 <= maxprice )
{ {
price *= 1.0001; price *= 1.0001;
if ( price > maxprice ) if ( price > maxprice )

Loading…
Cancel
Save