From a5d0d99a85c4bbecaabdd1365eb6fc928ea856b4 Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Thu, 27 Jan 2022 12:34:47 +0100 Subject: [PATCH] Fix format of immatur interest --- src/masternodes/rpc_loan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/masternodes/rpc_loan.cpp b/src/masternodes/rpc_loan.cpp index b1f1eb32bc..7b45c50190 100644 --- a/src/masternodes/rpc_loan.cpp +++ b/src/masternodes/rpc_loan.cpp @@ -1402,7 +1402,7 @@ UniValue getinterest(const JSONRPCRequest& request) { if (height >= Params().GetConsensus().FortCanningHillHeight) { auto subSatoshiInterest = (it->second.second - ((it->second.second / HIGH_PRECISION_SCALER) * HIGH_PRECISION_SCALER)).GetLow64(); - obj.pushKV("immatureInterest", UniValue(UniValue::VNUM, strprintf("0.%de-8", subSatoshiInterest))); + obj.pushKV("immatureInterest", UniValue(UniValue::VNUM, strprintf("%de-24", subSatoshiInterest))); } ret.push_back(obj);