TxConfirmationDialog: warn high fees

This commit is contained in:
selsta 2022-04-27 17:40:58 +02:00
parent b31cc36de2
commit 2021d61d91
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -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) {
@ -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 "";