mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Remove date check for DAO
This commit is contained in:
parent
eb8aa0fc85
commit
7d662ce27a
1 changed files with 1 additions and 19 deletions
|
@ -19,7 +19,6 @@ package io.bitsquare.gui.components.paymentmethods;
|
|||
|
||||
import io.bitsquare.common.util.Tuple2;
|
||||
import io.bitsquare.gui.components.InputTextField;
|
||||
import io.bitsquare.gui.main.overlays.popups.Popup;
|
||||
import io.bitsquare.gui.util.BSFormatter;
|
||||
import io.bitsquare.gui.util.Layout;
|
||||
import io.bitsquare.gui.util.validation.AltCoinAddressValidator;
|
||||
|
@ -41,8 +40,6 @@ import org.apache.commons.lang3.StringUtils;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.Optional;
|
||||
|
||||
import static io.bitsquare.gui.util.FormBuilder.*;
|
||||
|
@ -151,22 +148,7 @@ public class CryptoCurrencyForm extends PaymentMethodForm {
|
|||
}
|
||||
});
|
||||
currencyComboBox.setOnAction(e -> {
|
||||
TradeCurrency selectedItem = currencyComboBox.getSelectionModel().getSelectedItem();
|
||||
if (selectedItem != null) {
|
||||
String code = selectedItem.getCode();
|
||||
// TODO DAO will be open for sale on 28.5. Check can be removed at next release.
|
||||
if (code.equals("DAO") && new GregorianCalendar().before(new GregorianCalendar(2016, Calendar.MAY, 28))) {
|
||||
new Popup().information("The DAO tokens are not tradable before the pre-sale is over (28th of May).\n" +
|
||||
"From the 28th of May on you can setup a DAO account and trade DAO tokens in Bitsquare.")
|
||||
.closeButtonText("I understand")
|
||||
.onClose(() -> currencyComboBox.getSelectionModel().clearSelection())
|
||||
.show();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
paymentAccount.setSingleTradeCurrency(selectedItem);
|
||||
paymentAccount.setSingleTradeCurrency(currencyComboBox.getSelectionModel().getSelectedItem());
|
||||
updateFromInputs();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue