Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kosegor committed Nov 14, 2023
1 parent 2dc6d34 commit fce3cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/metoken/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
2 changes: 1 addition & 1 deletion x/metoken/keeper/price.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fce3cb2

Please sign in to comment.