Skip to content

Commit

Permalink
Merge branch 'main' into adam/directliquidation
Browse files Browse the repository at this point in the history
  • Loading branch information
toteki authored Aug 10, 2022
2 parents ad8b3a6 + 959a1e4 commit 8f97a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions x/leverage/keeper/interest.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ func (k Keeper) AccrueAllInterest(ctx sdk.Context) error {

// calculate time elapsed since last interest accrual (measured in years for APR math)
if currentTime < prevInterestTime {
// @todo fix this when tendermint solves #8773
// https://github.com/tendermint/tendermint/issues/8773
// TODO fix this when tendermint solves https://github.com/tendermint/tendermint/issues/8773
k.Logger(ctx).With("AccrueAllInterest will wait for block time > prevInterestTime").Error(
types.ErrNegativeTimeElapsed.Error(),
"current", currentTime,
Expand Down Expand Up @@ -161,7 +160,6 @@ func (k Keeper) AccrueAllInterest(ctx sdk.Context) error {
"reserved", newReserves.String(),
)

// TODO: use typed events
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
types.EventTypeInterestAccrual,
Expand Down
1 change: 1 addition & 0 deletions x/leverage/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var (
_ module.AppModule = AppModule{}
_ module.AppModuleBasic = AppModuleBasic{}
// TODO: Ensure x/leverage implements simulator and then uncomment.
// https://github.com/umee-network/umee/issues/644
// _ module.AppModuleSimulation = AppModule{}
)

Expand Down

0 comments on commit 8f97a11

Please sign in to comment.