From a9a4076e00c550fcb2574a0a374f721ae58c33f7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 20 Sep 2016 18:45:50 -0300 Subject: [PATCH] test --- basilisk/basilisk_DEX.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basilisk/basilisk_DEX.c b/basilisk/basilisk_DEX.c index 1f4bf2b75..17938e95d 100755 --- a/basilisk/basilisk_DEX.c +++ b/basilisk/basilisk_DEX.c @@ -432,11 +432,14 @@ STRING_ARG(InstantDEX,available,source) { item = jitem(unspents,i); if ( jobj(item,"unspent") != 0 ) + { total += jdouble(item,"amount") * SATOSHIDEN; + printf("(%s) -> %.8f\n",jprint(item,0),dstr(total)); + } } } retjson = cJSON_CreateObject(); - jaddnum(retjson,"result",total); + jaddnum(retjson,"result",dstr(total)); free_json(balancejson); } free(retstr);