jl777 7 years ago
parent
commit
1673c4c12b
  1. 4
      iguana/exchanges/LP_prices.c

4
iguana/exchanges/LP_prices.c

@ -536,9 +536,9 @@ int32_t LP_mypriceset(int32_t *changedp,char *base,char *rel,double price)
}
else if ( (maxprice= relpp->minprices[basepp->ind]) > SMALLVAL )
{
if ( price < (1. / maxprice) )
if ( price > (1. / maxprice) )
{
printf("%s/%s price %.8f more than maxprice %.8f, less than %.8f\n",base,rel,price,maxprice,1./maxprice);
printf("%s/%s price %.8f less than maxprice %.8f, more than %.8f\n",base,rel,price,maxprice,1./maxprice);
price = maxprice;
}
}

Loading…
Cancel
Save