From 5519190c34f7e660d3e9fcc7fcdef5dd322e5f32 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 19 Jul 2017 14:14:14 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index be8760ca1..defe2f0dc 100644 --- a/iguana/exchanges/LP_prices.c +++ b/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);