Skip to content

Commit

Permalink
fix(qt): avoid potential precision loss in amounts on Governance Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Nov 19, 2024
1 parent 018d80a commit c48efda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/qt/governancelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
4 changes: 2 additions & 2 deletions src/qt/governancelist.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Proposal : public QObject
QString m_title;
QDateTime m_startDate;
QDateTime m_endDate;
float m_paymentAmount;
double m_paymentAmount;
QString m_url;

public:
Expand All @@ -74,7 +74,7 @@ class Proposal : public QObject
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;
Expand Down

0 comments on commit c48efda

Please sign in to comment.