From 0d79fe82427f6e21f130625d0b7d3c3b858cea9a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 15 Jul 2017 23:19:54 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index a45224317..d1011b0a3 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -721,7 +721,7 @@ void prices_loop(void *ignore) price = 0.5 * (coinpp->bid + coinpp->ask); if ( (margin= coinpp->margins[btcpp->ind]) != 0. ) { - price *= (1. - margin); + price *= (1. + margin); if ( (minprice= coinpp->minprices[btcpp->ind]) == 0. || price >= minprice ) { LP_mypriceset(&changed,"BTC",name,price); @@ -731,7 +731,7 @@ void prices_loop(void *ignore) } if ( (margin= btcpp->margins[coinpp->ind]) != 0. ) { - price *= (1. + margin); + price *= (1. - margin); if ( (minprice= btcpp->minprices[coinpp->ind]) == 0. || price >= minprice ) { LP_mypriceset(&changed,name,"BTC",price);