From 8c128e306f0c67b60a3c07c2951c89c91f66062a Mon Sep 17 00:00:00 2001 From: Matvei Vasily Date: Tue, 21 Jan 2020 05:03:53 +1000 Subject: [PATCH 1/2] #1-warn-excessive-fee --- js/cointoolkit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/cointoolkit.js b/js/cointoolkit.js index 3626fb35..7fbb7cde 100644 --- a/js/cointoolkit.js +++ b/js/cointoolkit.js @@ -2356,7 +2356,7 @@ $(document).ready(function() { $("#transactionCreate").removeClass("hidden"); - if($("#transactionFee").val()>=0.011){ + if($("#transactionFee").val()>=0.1){ $("#modalWarningFeeAmount").html($("#transactionFee").val()); $("#modalWarningFee").modal("show"); } From db73cb4470501a08b10fc470d4fd4a53b113747d Mon Sep 17 00:00:00 2001 From: Matvei Vasily Date: Tue, 21 Jan 2020 05:10:51 +1000 Subject: [PATCH 2/2] fixed only for peeroin. --- js/cointoolkit.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/js/cointoolkit.js b/js/cointoolkit.js index 7fbb7cde..156a9d1b 100644 --- a/js/cointoolkit.js +++ b/js/cointoolkit.js @@ -2356,9 +2356,17 @@ $(document).ready(function() { $("#transactionCreate").removeClass("hidden"); - if($("#transactionFee").val()>=0.1){ - $("#modalWarningFeeAmount").html($("#transactionFee").val()); - $("#modalWarningFee").modal("show"); + if ($("#coinSelector").val() == "peercoin" || $("#coinSelector").val() == "peercoin_testnet") { + if ($("#transactionFee").val()>=0.1){ + $("#modalWarningFeeAmount").html($("#transactionFee").val()); + $("#modalWarningFee").modal("show"); + } + } + else { + if ($("#transactionFee").val()>=0.011){ + $("#modalWarningFeeAmount").html($("#transactionFee").val()); + $("#modalWarningFee").modal("show"); + } } } else { $("#transactionCreateStatus").removeClass("hidden").html("One or more input or output is invalid").fadeOut().fadeIn();