mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-03 17:39:54 +00:00
TxConfirmationDialog: warn high fees
This commit is contained in:
parent
b31cc36de2
commit
2021d61d91
1 changed files with 4 additions and 3 deletions
|
@ -338,8 +338,9 @@ Rectangle {
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
property bool maliciousTxFee: parseFloat(root.transactionFee) > 0.01
|
||||||
font.pixelSize: 15
|
color: maliciousTxFee ? "red" : MoneroComponents.Style.defaultFontColor
|
||||||
|
font.pixelSize: maliciousTxFee ? 20 : 15
|
||||||
text: {
|
text: {
|
||||||
if (currentWallet) {
|
if (currentWallet) {
|
||||||
if (!root.transactionFee) {
|
if (!root.transactionFee) {
|
||||||
|
@ -349,7 +350,7 @@ Rectangle {
|
||||||
return qsTr("Calculating fee") + "..." + translationManager.emptyString;
|
return qsTr("Calculating fee") + "..." + translationManager.emptyString;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return root.transactionFee + " XMR"
|
return root.transactionFee + " XMR" + (maliciousTxFee ? " (HIGH FEE)" : "")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in a new issue