Skip to content

Commit

Permalink
Fix /config query bug for chain handler use case returning the defa…
Browse files Browse the repository at this point in the history
…ult that is overriden by CoinGecko pricing source
  • Loading branch information
p0mvn committed Aug 23, 2024
1 parent b52e1fb commit ec25c08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## v25.13.1

- Fix `/config` query bug for chain handler use case returning the default that is overriden by CoinGecko pricing source.

## v25.13.0

- Reduce metrics cardinality, removing labels for most cases.
Expand Down
5 changes: 3 additions & 2 deletions app/sidecar_query_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ func NewSideCarQueryServer(appCodec codec.Codec, config domain.Config, logger lo
}

// Use the same config to initialize coingecko pricing strategy
config.Pricing.DefaultSource = domain.CoinGeckoPricingSourceType
coingeckoPricingSource, err := pricing.NewPricingStrategy(*config.Pricing, tokensUseCase, nil)
coingeckPricingConfig := *config.Pricing
coingeckPricingConfig.DefaultSource = domain.CoinGeckoPricingSourceType
coingeckoPricingSource, err := pricing.NewPricingStrategy(coingeckPricingConfig, tokensUseCase, nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ec25c08

Please sign in to comment.