diff --git a/app/oracle/config.go b/app/oracle/config.go index 989af446..16830b15 100644 --- a/app/oracle/config.go +++ b/app/oracle/config.go @@ -16,6 +16,8 @@ func DefaultConfig() oracleconfig.AppConfig { OracleAddress: "", ClientTimeout: time.Second * 2, MetricsEnabled: false, + PriceTTL: time.Second * 10, + Interval: time.Millisecond * 1500, } } @@ -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