From c9dfe43714eb4b3771d30f5ac343989e7507d9fa Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Thu, 14 Nov 2024 10:58:26 -0700 Subject: [PATCH] clean up a few things --- .../pricing/fetchers/HistoricalPriceFetcherFactory.kt | 7 ++----- .../service/pricing/fetchers/NavEventPriceFetcher.kt | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/HistoricalPriceFetcherFactory.kt b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/HistoricalPriceFetcherFactory.kt index 7c267cea..d9aae7f4 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/HistoricalPriceFetcherFactory.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/HistoricalPriceFetcherFactory.kt @@ -1,15 +1,12 @@ package io.provenance.explorer.service.pricing.fetchers import io.provenance.explorer.config.ExplorerProperties.Companion.UTILITY_TOKEN -import io.provenance.explorer.grpc.flow.FlowApiGrpcClient -class HistoricalPriceFetcherFactory( - private val flowApiGrpcClient: FlowApiGrpcClient -) { +class HistoricalPriceFetcherFactory() { fun createNhashPricingFetchers(): List { return listOf( OsmosisPriceFetcher(), - NavEventPriceFetcher(UTILITY_TOKEN, listOf("uusd.trading", "uusdc.figure.se", "uusdt.figure.se"), flowApiGrpcClient) + NavEventPriceFetcher(UTILITY_TOKEN, listOf("uusd.trading", "uusdc.figure.se", "uusdt.figure.se")) ) } } diff --git a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/NavEventPriceFetcher.kt b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/NavEventPriceFetcher.kt index f6311ab1..cc131ab4 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/NavEventPriceFetcher.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/pricing/fetchers/NavEventPriceFetcher.kt @@ -2,14 +2,12 @@ package io.provenance.explorer.service.pricing.fetchers import io.provenance.explorer.domain.entities.NavEventsRecord import io.provenance.explorer.domain.models.HistoricalPrice -import io.provenance.explorer.grpc.flow.FlowApiGrpcClient import io.provenance.explorer.service.pricing.utils.HashCalculationUtils import org.joda.time.DateTime class NavEventPriceFetcher( val denom: String, - val pricingDenoms: List, - private val flowApiGrpcClient: FlowApiGrpcClient + val pricingDenoms: List ) : HistoricalPriceFetcher { override fun getSource(): String {