From 3d3edbbbb81386a85e578fe79a42a029ce566592 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 9 Jul 2017 23:39:06 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_transaction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_transaction.c b/iguana/exchanges/LP_transaction.c index 45e96ec9e..a2450b7f7 100644 --- a/iguana/exchanges/LP_transaction.c +++ b/iguana/exchanges/LP_transaction.c @@ -548,10 +548,10 @@ char *basilisk_swap_bobtxspend(bits256 *signedtxidp,uint64_t txfee,char *name,ch { if ( value < satoshis+txfee ) { - if ( value == satoshis ) + if ( satoshis > value-txfee/2 ) { - printf("reduce satoshis by txfee %.8f\n",dstr(txfee)); - satoshis -= txfee; + satoshis = value - txfee; + printf("reduce satoshis by txfee %.8f to %.8f\n",dstr(txfee),dstr(satoshis)); } else {