mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Refactiong: rename methods and params
This commit is contained in:
parent
b882cb829a
commit
06b0bdd28d
@ -346,7 +346,7 @@ public class BisqApp extends Application {
|
||||
|
||||
private void showEmptyWalletPopup(WalletService walletService) {
|
||||
EmptyWalletWindow emptyWalletWindow = injector.getInstance(EmptyWalletWindow.class);
|
||||
emptyWalletWindow.setwalletService(walletService);
|
||||
emptyWalletWindow.setWalletService(walletService);
|
||||
emptyWalletWindow.show();
|
||||
}
|
||||
|
||||
|
@ -90,6 +90,7 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
|
||||
// If we would change the price representation in the domain we would not be backward compatible
|
||||
final StringProperty price = new SimpleStringProperty();
|
||||
final StringProperty makerFee = new SimpleStringProperty();
|
||||
final StringProperty makerFeeWithCode = new SimpleStringProperty();
|
||||
final StringProperty makerFeeCurrencyCode = new SimpleStringProperty();
|
||||
|
||||
// Positive % value means always a better price form the maker's perspective:
|
||||
@ -196,8 +197,8 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
|
||||
UserThread.runAfter(() -> {
|
||||
switch (BisqEnvironment.getBaseCurrencyNetwork().getCurrencyCode()) {
|
||||
case "BTC":
|
||||
amount.set("0.0001");
|
||||
price.set("7000");
|
||||
amount.set("0.1");
|
||||
price.set("0.00001");
|
||||
break;
|
||||
case "LTC":
|
||||
amount.set("50");
|
||||
@ -461,6 +462,7 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
|
||||
|
||||
private void applyMakerFee() {
|
||||
makerFee.set(getFormatterForMakerFee().formatCoin(dataModel.getMakerFee()));
|
||||
makerFeeWithCode.set(getFormatterForMakerFee().formatCoinWithCode(dataModel.getMakerFee()));
|
||||
makerFeeCurrencyCode.set(dataModel.isCurrencyForMakerFeeBtc() ? Res.getBaseCurrencyCode() : "BSQ");
|
||||
}
|
||||
|
||||
@ -634,8 +636,8 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
|
||||
|
||||
}
|
||||
|
||||
void setCurrencyForMakerFeeBtc(boolean currencyForMakerFeeBtc) {
|
||||
dataModel.setPreferredCurrencyForMakerFeeBtc(currencyForMakerFeeBtc);
|
||||
void setIsCurrencyForMakerFeeBtc(boolean isCurrencyForMakerFeeBtc) {
|
||||
dataModel.setPreferredCurrencyForMakerFeeBtc(isCurrencyForMakerFeeBtc);
|
||||
applyMakerFee();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user