diff --git a/Sources/SatsPrice/Network/CoinbasePriceFetcher.swift b/Sources/SatsPrice/Network/CoinbasePriceFetcher.swift index 1722d0a..5aae5d5 100644 --- a/Sources/SatsPrice/Network/CoinbasePriceFetcher.swift +++ b/Sources/SatsPrice/Network/CoinbasePriceFetcher.swift @@ -51,11 +51,11 @@ class CoinbasePriceFetcher : PriceFetcher { return nil } - #if !SKIP +#if !SKIP return Decimal(string: coinbasePrice.amount) - #else +#else return Decimal(coinbasePrice.amount) - #endif +#endif } catch { return nil } diff --git a/Sources/SatsPrice/SatsViewModel.swift b/Sources/SatsPrice/SatsViewModel.swift index 15c5338..b0ce6f5 100644 --- a/Sources/SatsPrice/SatsViewModel.swift +++ b/Sources/SatsPrice/SatsViewModel.swift @@ -184,11 +184,11 @@ class SatsViewModel: ObservableObject { if let currencyValue = self.currencyValue(for: currency) { if let btcToCurrency = self.currencyPrices[currency] { - #if !SKIP +#if !SKIP let btc = currencyValue / btcToCurrency - #else +#else let btc = currencyValue.divide(btcToCurrency, 20, java.math.RoundingMode.DOWN) - #endif +#endif self.btcStringInternal = btc.formatString() let sats = btc * Decimal(100000000)