diff --git a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/bitcoin/exchanges/bitbuy/BitbuyExchange.java b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/bitcoin/exchanges/bitbuy/BitbuyExchange.java index 3e24f5410..f074f1f19 100644 --- a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/bitcoin/exchanges/bitbuy/BitbuyExchange.java +++ b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/bitcoin/exchanges/bitbuy/BitbuyExchange.java @@ -140,21 +140,13 @@ private BigDecimal getRateSourceCryptoVolume(String cryptoCurrency) { @Override public BigDecimal getExchangeRateForBuy(String cryptoCurrency, String fiatCurrency) { BigDecimal rateSourceCryptoVolume = getRateSourceCryptoVolume(cryptoCurrency); - BigDecimal result = calculateBuyPrice(cryptoCurrency, fiatCurrency, rateSourceCryptoVolume); - if (result != null) { - return result.divide(rateSourceCryptoVolume, 2, RoundingMode.UP); - } - return null; + return calculateBuyPrice(cryptoCurrency, fiatCurrency, rateSourceCryptoVolume); } @Override public BigDecimal getExchangeRateForSell(String cryptoCurrency, String fiatCurrency) { BigDecimal rateSourceCryptoVolume = getRateSourceCryptoVolume(cryptoCurrency); - BigDecimal result = calculateSellPrice(cryptoCurrency, fiatCurrency, rateSourceCryptoVolume); - if (result != null) { - return result.divide(rateSourceCryptoVolume, 2, RoundingMode.DOWN); - } - return null; + return calculateSellPrice(cryptoCurrency, fiatCurrency, rateSourceCryptoVolume); } @Override