Skip to content

Commit

Permalink
add missing oracle config
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha committed Aug 1, 2024
1 parent 56d4e66 commit cd641ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/oracle/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ func DefaultConfig() oracleconfig.AppConfig {
OracleAddress: "",
ClientTimeout: time.Second * 2,
MetricsEnabled: false,
PriceTTL: time.Second * 10,
Interval: time.Millisecond * 1500,
}
}

Expand All @@ -25,6 +27,8 @@ func ReadOracleConfig(appOpts servertypes.AppOptions) oracleconfig.AppConfig {
OracleAddress: cast.ToString(appOpts.Get("oracle.oracle_address")),
ClientTimeout: cast.ToDuration(appOpts.Get("oracle.client_timeout")),
MetricsEnabled: cast.ToBool(appOpts.Get("oracle.metrics_enabled")),
PriceTTL: cast.ToDuration(appOpts.Get("oracle.price_ttl")),
Interval: cast.ToDuration(appOpts.Get("oracle.interval")),
}

return config
Expand Down

0 comments on commit cd641ad

Please sign in to comment.