mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Add conveniences isFiatOffer(offer), isAltcoinOffer(offer)
This commit is contained in:
parent
713b309f4a
commit
521495c41d
1 changed files with 8 additions and 0 deletions
|
@ -488,6 +488,14 @@ public class OfferUtil {
|
|||
}
|
||||
}
|
||||
|
||||
public static boolean isFiatOffer(Offer offer) {
|
||||
return offer.getBaseCurrencyCode().equals("BTC") && !offer.isBsqSwapOffer();
|
||||
}
|
||||
|
||||
public static boolean isAltcoinOffer(Offer offer) {
|
||||
return offer.getCounterCurrencyCode().equals("BTC") && !offer.isBsqSwapOffer();
|
||||
}
|
||||
|
||||
public static Optional<String> getInvalidMakerFeeTxErrorMessage(Offer offer, BtcWalletService btcWalletService) {
|
||||
String offerFeePaymentTxId = offer.getOfferFeePaymentTxId();
|
||||
if (offerFeePaymentTxId == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue