From 91f824cc7f91e163f639d2e00d2fcef15c867ec5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 5 Dec 2017 17:40:05 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index e8c2df84a..22dc0bc4e 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -1183,6 +1183,7 @@ cJSON *LP_fundvalue(cJSON *argjson) jadd(retjson,"holdings",array); btcprice = LP_CMCbtcprice(&usdprice,"komodo"); divisor = jdouble(argjson,"divisor"); + jaddnum(retjson,"KMDholdings",KMDholdings); if ( btcsum != 0 ) { if ( btcprice > SMALLVAL ) @@ -1192,7 +1193,7 @@ cJSON *LP_fundvalue(cJSON *argjson) jaddnum(retjson,"KMD_BTC",btcprice); jaddnum(retjson,"btcsum",btcsum); numKMD += KMDholdings; - jaddnum(retjson,"btcvalue",numKMD); + jaddnum(retjson,"btc2kmd",numKMD); if ( divisor != 0 ) { jaddnum(retjson,"NAV_KMD",numKMD/divisor); @@ -1205,7 +1206,7 @@ cJSON *LP_fundvalue(cJSON *argjson) if ( divisor != 0 ) { jaddnum(retjson,"divisor",divisor); - numKMD = (dstr(fundvalue) - KMDholdings); + numKMD = dstr(fundvalue); jaddnum(retjson,"assetNAV_KMD",numKMD/divisor); jaddnum(retjson,"assetNAV_BTC",(btcprice * numKMD)/divisor); jaddnum(retjson,"assetNAV_USD",(usdprice * numKMD)/divisor);