Skip to content

Commit

Permalink
Fix format of immature interest (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixa84 authored Jan 27, 2022
1 parent c0b5423 commit 5eb4730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masternodes/rpc_loan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5eb4730

Please sign in to comment.