From fce3cb24d7687bee2717294e36ed3950e549023e Mon Sep 17 00:00:00 2001 From: Egor Kostetskiy Date: Tue, 14 Nov 2023 10:28:09 -0300 Subject: [PATCH] fix --- x/metoken/expected_keepers.go | 2 +- x/metoken/keeper/price.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/metoken/expected_keepers.go b/x/metoken/expected_keepers.go index 5c021ece9d..0fbe27a669 100644 --- a/x/metoken/expected_keepers.go +++ b/x/metoken/expected_keepers.go @@ -34,5 +34,5 @@ type LeverageKeeper interface { // OracleKeeper interface for price feed. type OracleKeeper interface { AllMedianPrices(ctx sdk.Context) otypes.Prices - SetExchangeRateWithEvent(ctx sdk.Context, denom string, rate sdk.Dec) + SetExchangeRate(ctx sdk.Context, denom string, rate sdk.Dec) } diff --git a/x/metoken/keeper/price.go b/x/metoken/keeper/price.go index c0146d0024..16d2c6ca54 100644 --- a/x/metoken/keeper/price.go +++ b/x/metoken/keeper/price.go @@ -122,7 +122,7 @@ func (k Keeper) SetPricesToOracle() error { continue } - k.oracleKeeper.SetExchangeRateWithEvent(*k.ctx, indexToken.SymbolDenom, iPrice.Price) + k.oracleKeeper.SetExchangeRate(*k.ctx, indexToken.SymbolDenom, iPrice.Price) } return nil