0g-chain/x/hard/abci.go

12 lines
248 B
Go

package hard
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
// BeginBlocker updates interest rates and attempts liquidations
func BeginBlocker(ctx sdk.Context, k Keeper) {
k.ApplyInterestRateUpdates(ctx)
k.AttemptIndexLiquidations(ctx)
}