Browse Source

Test

etomic
jl777 7 years ago
parent
commit
5519190c34
  1. 8
      iguana/exchanges/LP_prices.c

8
iguana/exchanges/LP_prices.c

@ -650,9 +650,11 @@ void LP_pricefeedupdate(bits256 pubkey,char *base,char *rel,double price)
{
if ( fabs(pubp->matrix[basepp->ind][relpp->ind] - price) > SMALLVAL )
printf("PRICEFEED UPDATE.(%s/%s) %.8f %s %.8f\n",base,rel,price,bits256_str(str,pubkey),1./price);
pubp->matrix[basepp->ind][relpp->ind] = price;
dxblend(&basepp->relvals[relpp->ind],price,0.9);
dxblend(&relpp->relvals[basepp->ind],1. / price,0.9);
{
pubp->matrix[basepp->ind][relpp->ind] = price;
dxblend(&basepp->relvals[relpp->ind],price,0.9);
dxblend(&relpp->relvals[basepp->ind],1. / price,0.9);
}
pubp->timestamp = (uint32_t)time(NULL);
} else printf("error creating pubkey entry\n");
} else printf("error finding %s/%s %.8f\n",base,rel,price);

Loading…
Cancel
Save