Skip to content

Commit 1704082

Browse files
authored
feat: added susda:usda to config (#72)
* feat: added susda:usda to config * fix: tests, default grpc for eris
1 parent 719333c commit 1704082

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

config/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ var defaultExchangeSymbolsMap = map[string]map[asset.Pair]types.Symbol{
8282
sources.SourceChainLink: {
8383
"b2btc:btc": "uBTC/BTC",
8484
},
85+
86+
sources.SourceAvalon: {
87+
"susda:usda": "susda:usda",
88+
},
8589
}
8690

8791
func MustGet() *Config {

feeder/priceprovider/sources/coingecko.go renamed to feeder/priceprovider/sources/coingecko_not_used.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package sources
22

3+
// NOTE: we don't use CoinGecko provider as it's free rate limits are too low for production use.
4+
35
import (
46
"encoding/json"
57
"fmt"
File renamed without changes.

feeder/priceprovider/sources/eris_protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func newGRPCConnection() (*grpc.ClientConn, error) {
3939
grpcReadEndpoint = os.Getenv("GRPC_ENDPOINT")
4040
}
4141
if grpcReadEndpoint == "" {
42-
grpcReadEndpoint = "localhost:9090"
42+
grpcReadEndpoint = "grpc.nibiru.fi:443" // default to mainnet
4343
}
4444
enableTLS := os.Getenv("ENABLE_TLS") == "true" || strings.Contains(grpcReadEndpoint, ":443")
4545
creds := insecure.NewCredentials()

0 commit comments

Comments
 (0)