diff --git a/src/masternodes/govvariables/attributes.cpp b/src/masternodes/govvariables/attributes.cpp index 9fed609ce1..c998ecb6bf 100644 --- a/src/masternodes/govvariables/attributes.cpp +++ b/src/masternodes/govvariables/attributes.cpp @@ -694,6 +694,9 @@ UniValue ATTRIBUTES::ExportFiltered(GovVarsFilter filter, const std::string &pre } else { auto decimalStr = GetDecimaleString(*amount); rtrim(decimalStr, '0'); + if (decimalStr.back() == '.') { + decimalStr.pop_back(); + } ret.pushKV(key, decimalStr); } } else if (auto balances = boost::get(&attribute.second)) {