Skip to content

Commit

Permalink
fix: Clientless oracle tick capable of being called by the Ojo oracle…
Browse files Browse the repository at this point in the history
… module (#400)

* fix: Make sure oracle param cache is updated in clientless tick

* get params in startclientless

* revert startclientless

* getParamCache in startclientless

* make tick clientless public

* remove currency pairs required in config

* lint

* get up to date ojo

* fix empty pairs unit test

* nolint grpc dial

* test
  • Loading branch information
rbajollari authored Sep 13, 2024
1 parent 8876d36 commit 5f82e10
Show file tree
Hide file tree
Showing 5 changed files with 377 additions and 626 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type (
Config struct {
ConfigDir string `mapstructure:"config_dir"`
Server Server `mapstructure:"server"`
CurrencyPairs []CurrencyPair `mapstructure:"currency_pairs" validate:"required,gt=0,dive,required"`
CurrencyPairs []CurrencyPair `mapstructure:"currency_pairs"`
Deviations []Deviation `mapstructure:"deviation_thresholds"`
Account Account `mapstructure:"account"`
Keyring Keyring `mapstructure:"keyring"`
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestValidate(t *testing.T) {
{
"empty pairs",
emptyPairs,
true,
false,
},
{
"invalid base",
Expand Down
Loading

0 comments on commit 5f82e10

Please sign in to comment.