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 )