Change scope of safe account age point in time as long as it is not used anywhere else

This commit is contained in:
Christoph Atteneder 2019-06-06 17:24:38 +02:00 committed by Christoph Sturm
parent aa2e3eadcc
commit 5dc321cc43

View File

@ -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);
}
}