mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Prevent updating of amount
This commit is contained in:
parent
8b9ccfe588
commit
5276671f1e
@ -134,6 +134,7 @@ public abstract class EditableOfferDataModel extends OfferDataModel implements B
|
||||
private boolean marketPriceAvailable;
|
||||
private int feeTxSize = 260; // size of typical tx with 1 input
|
||||
private int feeTxSizeEstimationRecursionCounter;
|
||||
protected boolean allowAmountUpdate = true;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Constructor, lifecycle
|
||||
@ -652,7 +653,8 @@ public abstract class EditableOfferDataModel extends OfferDataModel implements B
|
||||
if (volume.get() != null &&
|
||||
price.get() != null &&
|
||||
!volume.get().isZero() &&
|
||||
!price.get().isZero()) {
|
||||
!price.get().isZero() &&
|
||||
allowAmountUpdate) {
|
||||
try {
|
||||
amount.set(formatter.reduceTo4Decimals(price.get().getAmountByVolume(volume.get())));
|
||||
calculateTotalToPay();
|
||||
|
@ -57,6 +57,8 @@ class EditOpenOfferDataModel extends EditableOfferDataModel {
|
||||
this.openOffer = openOffer;
|
||||
this.initialState = openOffer.getState();
|
||||
this.paymentAccount = user.getPaymentAccount(openOffer.getOffer().getMakerPaymentAccountId());
|
||||
|
||||
this.allowAmountUpdate = false;
|
||||
}
|
||||
|
||||
public void populateData() {
|
||||
|
Loading…
Reference in New Issue
Block a user