Use minTakerFee when calculating taker fee

This commit is contained in:
sqrrm 2019-05-22 12:57:17 +02:00
parent 2591ddd85d
commit ce38cec1af
No known key found for this signature in database
GPG key ID: 45235F9EF87089EC

View file

@ -146,7 +146,7 @@ public class OfferUtil {
public static Coin getTakerFee(boolean isCurrencyForTakerFeeBtc, @Nullable Coin amount) {
if (amount != null) {
Coin feePerBtc = CoinUtil.getFeePerBtc(FeeService.getTakerFeePerBtc(isCurrencyForTakerFeeBtc), amount);
return CoinUtil.maxCoin(feePerBtc, FeeService.getMinMakerFee(isCurrencyForTakerFeeBtc));
return CoinUtil.maxCoin(feePerBtc, FeeService.getMinTakerFee(isCurrencyForTakerFeeBtc));
} else {
return null;
}