Browse Source

Test

etomic
jl777 7 years ago
parent
commit
e8c29797c0
  1. 3
      iguana/exchanges/LP_ordermatch.c

3
iguana/exchanges/LP_ordermatch.c

@ -1020,8 +1020,9 @@ int32_t LP_trades_bestpricecheck(void *ctx,struct LP_trade *tp)
double qprice; struct LP_quoteinfo Q; int64_t dynamictrust;
Q = tp->Q;
//printf("check bestprice %.8f vs new price %.8f\n",tp->bestprice,(double)Q.destsatoshis/Q.satoshis);
if ( (qprice= LP_trades_alicevalidate(ctx,&Q)) > 0. )
if ( Q.satoshis != 0 )//(qprice= LP_trades_alicevalidate(ctx,&Q)) > 0. )
{
qprice = (double)Q.destsatoshis / (Q.satoshis - Q.txfee);
LP_trades_gotreserved(ctx,&Q,&tp->Qs[LP_RESERVED]);
dynamictrust = LP_dynamictrust(Q.srchash,LP_kmdvalue(Q.srccoin,Q.satoshis));
if ( tp->bestprice == 0. || (qprice < tp->bestprice || (qprice < tp->bestprice*1.01 && dynamictrust > tp->besttrust)) )

Loading…
Cancel
Save