mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Use isFiat method for checking if it is a fiat method
This commit is contained in:
parent
cad973efd1
commit
638d638d25
1 changed files with 1 additions and 3 deletions
|
@ -25,8 +25,6 @@ import bisq.core.locale.Res;
|
|||
import bisq.core.offer.Offer;
|
||||
import bisq.core.offer.OfferDirection;
|
||||
import bisq.core.offer.OfferRestrictions;
|
||||
import bisq.core.payment.AssetAccount;
|
||||
import bisq.core.payment.BsqSwapAccount;
|
||||
import bisq.core.payment.ChargeBackRisk;
|
||||
import bisq.core.payment.PaymentAccount;
|
||||
import bisq.core.payment.payload.PaymentAccountPayload;
|
||||
|
@ -229,7 +227,7 @@ public class AccountAgeWitnessService {
|
|||
private void republishAllFiatAccounts() {
|
||||
if (user.getPaymentAccounts() != null)
|
||||
user.getPaymentAccounts().stream()
|
||||
.filter(account -> !(account instanceof AssetAccount) && !(account instanceof BsqSwapAccount))
|
||||
.filter(account -> account.getPaymentMethod().isFiat())
|
||||
.forEach(account -> {
|
||||
AccountAgeWitness myWitness = getMyWitness(account.getPaymentAccountPayload());
|
||||
// We only publish if the date of our witness is inside the date tolerance.
|
||||
|
|
Loading…
Add table
Reference in a new issue