Skip to content

Commit

Permalink
Merge pull request peercoin#11 from Matvei-Vasily/peercoin#1-warn-exc…
Browse files Browse the repository at this point in the history
…essive-fee

peercoin#1-warn-excessive-fee
  • Loading branch information
peerchemist committed Jan 21, 2020
2 parents 297c77d + db73cb4 commit 6513bdf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions js/cointoolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2356,9 +2356,17 @@ $(document).ready(function() {

$("#transactionCreate").removeClass("hidden");

if($("#transactionFee").val()>=0.011){
$("#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();
Expand Down

0 comments on commit 6513bdf

Please sign in to comment.