From a0b3a3673dcbe8033df2f60f28917e09f8325c51 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 6 Oct 2017 18:47:36 +0300 Subject: [PATCH] Targetval --- 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 a3570d889..8ad3dff78 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -488,7 +488,7 @@ struct LP_utxoinfo *LP_address_utxopair(int32_t iambob,struct LP_address_utxo ** { up = utxos[mini]; utxos[mini] = 0; - targetval2 = (up->U.value / 8) * 9 + 2*txfee; + targetval2 = (targetval / 8) * 9 + 2*txfee; if ( (mini= LP_nearest_utxovalue(utxos,m,targetval2)) >= 0 ) { if ( up != 0 && (up2= utxos[mini]) != 0 )