From f8bcad38ed84eacbbfe44514476869cf1ec31981 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 Jul 2018 10:22:45 -1100 Subject: [PATCH] Test --- src/cc/CCassetsCore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/CCassetsCore.cpp b/src/cc/CCassetsCore.cpp index 3258f60ae..d87dcf5d4 100644 --- a/src/cc/CCassetsCore.cpp +++ b/src/cc/CCassetsCore.cpp @@ -97,7 +97,7 @@ bool SetAssetFillamounts(int32_t sellflag,uint64_t &received_nValue,uint64_t &re } else { - dprice = (double)orig_nValue / totalunits; + dprice = (double)(orig_nValue * COIN) / totalunits; received_nValue = (paidunits * dprice); fprintf(stderr,"dprice %.8f orig %llu/total %llu, recv %llu\n",dprice,(long long)orig_nValue,(long long)totalunits,(long long)received_nValue); }