public void initialize() {
ValidationLink amountLink = new ValidationLink(amountEdit, str -> {
// Can't pledge more than our balance or more than the project is trying to actually raise
// as excess would go to miners fees.
Coin coin = valueOrNull(str);
boolean valid = coin != null && coin.compareTo(max) <= 0 && coin.compareTo(min) >= 0;
minersFeeLabel.setVisible(valid && !coin.equals(Main.wallet.getBalance()));
return valid;
});
ValidationLink emailLink = new ValidationLink(emailEdit, str -> str.contains("@"));
ValidationLink.autoDisableButton(confirmButton, amountLink, emailLink);