mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Add brackets to if-else statement
This commit is contained in:
parent
8af3573cfe
commit
e4d479d89c
1 changed files with 3 additions and 2 deletions
|
@ -88,10 +88,11 @@ class DuplicateOfferDataModel extends MutableOfferDataModel {
|
|||
setVolume(offer.getVolume());
|
||||
setUseMarketBasedPrice(offer.isUseMarketBasedPrice());
|
||||
|
||||
if (offer.getBuyerSecurityDeposit().value == Restrictions.getMinBuyerSecurityDepositAsCoin().getValue())
|
||||
if (offer.getBuyerSecurityDeposit().value == Restrictions.getMinBuyerSecurityDepositAsCoin().getValue()) {
|
||||
setBuyerSecurityDeposit(Restrictions.getMinBuyerSecurityDepositAsPercent());
|
||||
else
|
||||
} else {
|
||||
setBuyerSecurityDeposit(CoinUtil.getAsPercentPerBtc(offer.getBuyerSecurityDeposit(), offer.getAmount()));
|
||||
}
|
||||
|
||||
if (offer.isUseMarketBasedPrice()) {
|
||||
setMarketPriceMargin(offer.getMarketPriceMargin());
|
||||
|
|
Loading…
Add table
Reference in a new issue