Skip to content

Commit

Permalink
clean up a few things
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Nov 14, 2024
1 parent 1be2713 commit c9dfe43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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<HistoricalPriceFetcher> {
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"))
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
private val flowApiGrpcClient: FlowApiGrpcClient
val pricingDenoms: List<String>
) : HistoricalPriceFetcher {

override fun getSource(): String {
Expand Down

0 comments on commit c9dfe43

Please sign in to comment.