From 79b30cc997b178d0fac62d46e54c1e718e572438 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 24 Jun 2018 08:11:31 -1100 Subject: [PATCH] Restruct autofill tux-merge --- iguana/exchanges/LP_ordermatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 9033696f7..bb454c167 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -1162,9 +1162,9 @@ printf("bob %s received REQUEST.(%s) mpnet.%d fill.%d gtc.%d\n",bits256_str(str, if ( qp->gtc != 0 && qp->fill != 0 && coin != 0 ) { LP_address_utxo_reset(&num,coin); - if (LP_getheight(¬arized,coin) > coin->bobfillheight+3 ) + satoshis = LP_basesatoshis(dstr(qp->destsatoshis),price,qp->txfee,qp->desttxfee) + 3*qp->txfee; + if ( LP_getheight(¬arized,coin) > coin->bobfillheight+3 && fabs(coin->fillsatoshis - satoshis)/satoshis > 0.1 ) { - satoshis = LP_basesatoshis(dstr(qp->destsatoshis),price,qp->txfee,qp->desttxfee) + 3*qp->txfee; if ( (retstr= LP_autofillbob(coin,satoshis*1.02)) != 0 ) { if ( (retjson= cJSON_Parse(retstr)) != 0 )