Skip to content

Commit

Permalink
Merge pull request #3897
Browse files Browse the repository at this point in the history
2021d61 TxConfirmationDialog: warn high fees (selsta)
  • Loading branch information
luigi1111 committed Apr 28, 2022
2 parents 46d0b6b + 2021d61 commit 2e2ae5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/TxConfirmationDialog.qml
Expand Up @@ -338,8 +338,9 @@ Rectangle {
spacing: 16

Text {
color: MoneroComponents.Style.defaultFontColor
font.pixelSize: 15
property bool maliciousTxFee: parseFloat(root.transactionFee) > 0.01
color: maliciousTxFee ? "red" : MoneroComponents.Style.defaultFontColor
font.pixelSize: maliciousTxFee ? 20 : 15
text: {
if (currentWallet) {
if (!root.transactionFee) {
Expand All @@ -349,7 +350,7 @@ Rectangle {
return qsTr("Calculating fee") + "..." + translationManager.emptyString;
}
} else {
return root.transactionFee + " XMR"
return root.transactionFee + " XMR" + (maliciousTxFee ? " (HIGH FEE)" : "")
}
} else {
return "";
Expand Down

0 comments on commit 2e2ae5c

Please sign in to comment.