Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(qt): avoid potential precision loss in amounts on Governance Tab #6404

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading