0g-chain/x/hard/spec/06_begin_block.md

218 B

Begin Block

At the start of each block interest is accumulated

// BeginBlocker updates interest rates
func BeginBlocker(ctx sdk.Context, k Keeper) {
  k.ApplyInterestRateUpdates(ctx)
}