Skip to content

Commit

Permalink
actually, remove this log and use the err scope fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamewozniak committed Dec 1, 2023
1 parent e901963 commit b1bc163
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions x/oracle/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@ func CalcPrices(ctx sdk.Context, params types.Params, k keeper.Keeper) error {
}
// Calculate and stamp median/median deviation if median stamp period has passed
if k.IsPeriodLastBlock(ctx, params.MedianStampPeriod) {
var err error
k.IterateExchangeRates(ctx, func(denom string, _ sdk.Dec, _ time.Time) (stop bool) {
err := k.CalcAndSetHistoricMedian(ctx, denom)
if err != nil {
ctx.Logger().Error("error calculating historic median", "denom", denom, "error", err)
}
err = k.CalcAndSetHistoricMedian(ctx, denom)
return err != nil
})
if err != nil {
return err
}
}

// update miss counting & slashing
Expand Down

0 comments on commit b1bc163

Please sign in to comment.