mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Change scope of safe account age point in time as long as it is not used anywhere else
This commit is contained in:
parent
aa2e3eadcc
commit
5dc321cc43
@ -33,7 +33,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@Slf4j
|
||||
public class AccountAgeRestrictions {
|
||||
public static final long SAFE_ACCOUNT_AGE_DATE = Utilities.getUTCDate(2019, GregorianCalendar.MARCH, 1).getTime();
|
||||
private static final long SAFE_ACCOUNT_AGE_DATE = Utilities.getUTCDate(2019, GregorianCalendar.MARCH, 1).getTime();
|
||||
|
||||
public static boolean isMakersAccountAgeImmature(AccountAgeWitnessService accountAgeWitnessService, Offer offer) {
|
||||
long accountCreationDate = new Date().getTime() - accountAgeWitnessService.getMakersAccountAge(offer, new Date());
|
||||
@ -77,6 +77,7 @@ public class AccountAgeRestrictions {
|
||||
// Taker is buyer
|
||||
return OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.value;
|
||||
} else {
|
||||
// Offers with no chargeback risk or mature buyer accounts
|
||||
return accountAgeWitnessService.getMyTradeLimit(paymentAccount, currencyCode);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user