Further restrict cloning

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2023-05-12 21:02:19 +07:00
parent 63ca40db5c
commit e6dc26a26a
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307

View File

@ -219,7 +219,7 @@ class CloneOfferDataModel extends MutableOfferDataModel {
editedOfferPayload.getBankId(), editedOfferPayload.getBankId(),
editedOfferPayload.getAcceptedBankIds(), editedOfferPayload.getAcceptedBankIds(),
editedOfferPayload.getVersionNr(), editedOfferPayload.getVersionNr(),
editedOfferPayload.getBlockHeightAtOfferCreation(), sourceOfferPayload.getBlockHeightAtOfferCreation(),
sourceOfferPayload.getTxFee(), sourceOfferPayload.getTxFee(),
sourceOfferPayload.getMakerFee(), sourceOfferPayload.getMakerFee(),
sourceOfferPayload.isCurrencyForMakerFeeBtc(), sourceOfferPayload.isCurrencyForMakerFeeBtc(),
@ -227,14 +227,14 @@ class CloneOfferDataModel extends MutableOfferDataModel {
sourceOfferPayload.getSellerSecurityDeposit(), sourceOfferPayload.getSellerSecurityDeposit(),
editedOfferPayload.getMaxTradeLimit(), editedOfferPayload.getMaxTradeLimit(),
editedOfferPayload.getMaxTradePeriod(), editedOfferPayload.getMaxTradePeriod(),
editedOfferPayload.isUseAutoClose(), sourceOfferPayload.isUseAutoClose(),
editedOfferPayload.isUseReOpenAfterAutoClose(), sourceOfferPayload.isUseReOpenAfterAutoClose(),
editedOfferPayload.getLowerClosePrice(), sourceOfferPayload.getLowerClosePrice(),
editedOfferPayload.getUpperClosePrice(), sourceOfferPayload.getUpperClosePrice(),
editedOfferPayload.isPrivateOffer(), sourceOfferPayload.isPrivateOffer(),
editedOfferPayload.getHashOfChallenge(), sourceOfferPayload.getHashOfChallenge(),
editedOfferPayload.getExtraDataMap(), sourceOfferPayload.getExtraDataMap(),
editedOfferPayload.getProtocolVersion()); sourceOfferPayload.getProtocolVersion());
Offer clonedOffer = new Offer(clonedOfferPayload); Offer clonedOffer = new Offer(clonedOfferPayload);
clonedOffer.setPriceFeedService(priceFeedService); clonedOffer.setPriceFeedService(priceFeedService);
clonedOffer.setState(Offer.State.OFFER_FEE_PAID); clonedOffer.setState(Offer.State.OFFER_FEE_PAID);