From c98eafbfac2dcc2a32a00fb48e3fe325f1bb911d Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 28 Mar 2018 15:25:39 +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 aeaf56df7..bd498f918 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -1501,7 +1501,7 @@ char *LP_autobuy(void *ctx,int32_t fomoflag,char *myipaddr,int32_t mypubsock,cha LP_address_minmax(&median,&minutxo,&maxutxo,relcoin,relcoin->smartaddr); // limit to largest utxo if ( maxutxo > 0 ) { - relvolume = dstr(maxutxo) - desttxfee*3; + relvolume = dstr(maxutxo) - dstr(desttxfee)*3; maxprice = LP_fomoprice(base,rel,relvolume); } else printf("no utxo available\n"); }