Skip to content

Commit

Permalink
remove feeder addr
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jan 22, 2025
1 parent b0eeeee commit 5fa8373
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion cmd/price-feeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ func priceFeederCmdHandler(cmd *cobra.Command, args []string) error {
deviations,
cfg.ProviderEndpointsMap(),
!configCurrencyProviders,
cfg.Account.Address,
)

if !configCurrencyProviders {
Expand Down
5 changes: 0 additions & 5 deletions oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ type Oracle struct {
AmmPools map[uint64]oracletypes.Pool
AccountedPools map[uint64]oracletypes.AccountedPool
chainConfig bool
feederAddr string

pricesMutex sync.RWMutex
lastPriceSyncTS time.Time
Expand All @@ -90,7 +89,6 @@ func New(
deviations map[string]sdkmath.LegacyDec,
endpoints map[types.ProviderName]provider.Endpoint,
chainConfig bool,
feederAddr string,
) *Oracle {
return &Oracle{
logger: logger.With().Str("module", "oracle").Logger(),
Expand All @@ -106,7 +104,6 @@ func New(
AccountedPools: make(map[uint64]oracletypes.AccountedPool),
chainConfig: chainConfig,
endpoints: endpoints,
feederAddr: feederAddr,
}
}

Expand Down Expand Up @@ -315,8 +312,6 @@ func (o *Oracle) SetPrices(ctx context.Context) error {
}

for poolId, el := range providerExternalLiquidity {

Check failure on line 314 in oracle/oracle.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

range var poolId should be poolID
// add oracle feeder address to external liquidity
el.FeederAddr = o.feederAddr
externalLiquidity[poolId] = el
}

Expand Down
1 change: 0 additions & 1 deletion oracle/oracle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ func (ots *OracleTestSuite) SetupSuite() {
make(map[string]math.LegacyDec),
make(map[types.ProviderName]provider.Endpoint),
false,
"",
)
}

Expand Down
1 change: 0 additions & 1 deletion tests/integration/price_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func TestPriceAccuracy(t *testing.T) {
deviations,
cfg.ProviderEndpointsMap(),
false,
"",
)

symbols := cfg.ExpectedSymbols()
Expand Down

0 comments on commit 5fa8373

Please sign in to comment.