From 97802ea718e0ebfcf1612b731bebfcd424552c3f Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Mon, 19 Mar 2018 14:10:34 +0700 Subject: [PATCH] Remove ETH/ERC20 from LP_balance as it's constantly updating in price_loop. --- iguana/exchanges/LP_portfolio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/exchanges/LP_portfolio.c b/iguana/exchanges/LP_portfolio.c index 840bc4919..27cac5e8e 100644 --- a/iguana/exchanges/LP_portfolio.c +++ b/iguana/exchanges/LP_portfolio.c @@ -95,12 +95,14 @@ uint64_t LP_balance(uint64_t *valuep,int32_t iambob,char *symbol,char *coinaddr) cJSON *array,*item; bits256 zero; int32_t i,n; uint64_t valuesum,satoshisum,value; valuesum = satoshisum = 0; memset(zero.bytes,0,sizeof(zero)); +/* #ifndef NOTETOMIC struct iguana_info *coin = LP_coinfind(symbol); if (coin->etomic[0] != 0) { valuesum = LP_etomic_get_balance(coin, coinaddr); } else #endif +*/ if ( (array= LP_listunspent(symbol,coinaddr,zero,zero)) != 0 ) { if ( is_cJSON_Array(array) != 0 && (n= cJSON_GetArraySize(array)) > 0 )