From 197d29ef1d0a60d19570342a8305a2cfa7b1de83 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Jul 2017 23:33:19 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index c1bad807e..62d156beb 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -731,7 +731,7 @@ void prices_loop(void *ignore) } if ( (margin= btcpp->margins[coinpp->ind]) != 0. ) { - price = (price * (1. + margin)); + price = 1. / (price * (1. + margin)); if ( (minprice= btcpp->minprices[coinpp->ind]) == 0. || price >= minprice ) { LP_mypriceset(&changed,name,"BTC",price);