diff --git a/oracle/provider/astroport.go b/oracle/provider/astroport.go index 79835f9..dc5f70d 100644 --- a/oracle/provider/astroport.go +++ b/oracle/provider/astroport.go @@ -221,9 +221,8 @@ func (p *AstroportProvider) getAvailableAssets() (map[string]types.CurrencyPair, switch asset.QuoteSymbol.(type) { case string: quoteSymbol = strings.ToUpper(asset.QuoteSymbol.(string)) - default: - // leave quote symbol to be empty string } + availablePairs[tickerID] = types.CurrencyPair{ Base: strings.ToUpper(asset.BaseSymbol), Quote: quoteSymbol, diff --git a/oracle/provider/astroport_test.go b/oracle/provider/astroport_test.go index 5e80124..9101fff 100644 --- a/oracle/provider/astroport_test.go +++ b/oracle/provider/astroport_test.go @@ -33,7 +33,7 @@ func TestAstroportProvider_GetTickers(t *testing.T) { require.NotEmpty(t, availPairs) p.StartConnections() - time.Sleep(6 * time.Second) + time.Sleep(10 * time.Second) res, err := p.GetTickerPrices(pairs...) require.NoError(t, err)