From afb09723fe6bcaed6443e3cfdb26179e5d53295d Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 25 Jan 2018 11:05:12 +0400 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 771fdbc85..4dbf53495 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -539,7 +539,7 @@ int32_t LP_mypriceset(int32_t *changedp,char *base,char *rel,double price) if ( price > (1. / maxprice) ) { printf("%s/%s price %.8f less than maxprice %.8f, more than %.8f\n",base,rel,price,maxprice,1./maxprice); - price = maxprice; + price = (1. / maxprice); } } /*else if ( basepp->myprices[relpp->ind] > SMALLVAL )