From 7126c3d19be839334b2d7a1fa5eb95133bc135f2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 17 Jun 2017 12:56:09 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 498f33a6c..55eb9cc6d 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -546,7 +546,7 @@ char *LP_autotrade(char *myipaddr,int32_t mypubsock,double profitmargin,char *ba if ( (butxo= LP_utxofind(1,txid,vout)) != 0 && vol*SATOSHIDEN == butxo->payment.value && LP_isavailable(butxo) > 0 && LP_ismine(butxo) == 0 ) { asatoshis = butxo->payment.value * price; - if ( asatoshis <= destsatoshis && destsatoshis > (asatoshis >> 1) ) + if ( asatoshis <= destsatoshis && destsatoshis > (asatoshis >> 1) && asatoshis > (autxo->payment.value >> 1) ) { metric = price / bestprice; printf("%f %f %f %f ",price,metric,dstr(asatoshis),metric * metric * metric);