mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-16 00:04:09 -05:00
throw error editing offer if reserved for a trade
This commit is contained in:
parent
7cb9a4b6ac
commit
7ead677ff2
1 changed files with 5 additions and 0 deletions
|
|
@ -325,6 +325,11 @@ public class CoreOffersService {
|
|||
final Offer offer = openOffer.getOffer();
|
||||
final OfferPayload offerPayload = openOffer.getOffer().getOfferPayload();
|
||||
|
||||
// cannot edit reserved offer
|
||||
if (openOffer.isReserved()) {
|
||||
throw new IllegalStateException("Cannot edit offer " + offer.getId() + " because it's reserved");
|
||||
}
|
||||
|
||||
// get currency code
|
||||
if (currencyCode.isEmpty()) currencyCode = offer.getCounterCurrencyCode();
|
||||
String upperCaseCurrencyCode = currencyCode.toUpperCase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue