Cleanup unused argument

This commit is contained in:
sqrrm 2020-11-03 17:35:29 +01:00
parent 7f734292f3
commit 02e53304ed
No known key found for this signature in database
GPG Key ID: 45235F9EF87089EC

View File

@ -379,7 +379,7 @@ public class AccountAgeWitnessService {
long limit = OfferRestrictions.TOLERATED_SMALL_TRADE_AMOUNT.value;
var factor = PaymentMethod.hasChargebackRisk(paymentMethod, currencyCode) ?
signedTypeFactor(accountAgeCategory, direction) : normalFactor(accountAgeCategory);
signedTypeFactor(accountAgeCategory, direction) : normalFactor();
if (factor > 0) {
limit = MathUtils.roundDoubleToLong((double) maxTradeLimit.value * factor);
}
@ -394,7 +394,7 @@ public class AccountAgeWitnessService {
private double signedTypeFactor(AccountAge accountAgeCategory,
OfferPayload.Direction direction) {
return direction == OfferPayload.Direction.BUY ? signedBuyFactor(accountAgeCategory) :
normalFactor(accountAgeCategory);
normalFactor();
}
private double signedBuyFactor(AccountAge accountAgeCategory) {
@ -410,7 +410,7 @@ public class AccountAgeWitnessService {
return 0;
}
private double normalFactor(AccountAge accountAgeCategory) {
private double normalFactor() {
return 1;
}