From c48efdac83e642c6954e2b64707173fe40f29f54 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 19 Nov 2024 15:15:59 +0300 Subject: [PATCH] fix(qt): avoid potential precision loss in amounts on Governance Tab --- src/qt/governancelist.cpp | 2 +- src/qt/governancelist.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qt/governancelist.cpp b/src/qt/governancelist.cpp index 2439486b18..781d3c2ca0 100644 --- a/src/qt/governancelist.cpp +++ b/src/qt/governancelist.cpp @@ -63,7 +63,7 @@ QDateTime Proposal::startDate() const { return m_startDate; } QDateTime Proposal::endDate() const { return m_endDate; } -float Proposal::paymentAmount() const { return m_paymentAmount; } +double Proposal::paymentAmount() const { return m_paymentAmount; } QString Proposal::url() const { return m_url; } diff --git a/src/qt/governancelist.h b/src/qt/governancelist.h index 04c65acdb6..e64562bf4b 100644 --- a/src/qt/governancelist.h +++ b/src/qt/governancelist.h @@ -65,7 +65,7 @@ private: QString m_title; QDateTime m_startDate; QDateTime m_endDate; - float m_paymentAmount; + double m_paymentAmount; QString m_url; public: @@ -74,7 +74,7 @@ public: QString hash() const; QDateTime startDate() const; QDateTime endDate() const; - float paymentAmount() const; + double paymentAmount() const; QString url() const; bool isActive() const; QString votingStatus(int nAbsVoteReq) const;