2020-08-17 17:09:02 +00:00
|
|
|
package issuance
|
|
|
|
|
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
"github.com/kava-labs/kava/x/issuance/keeper"
|
|
|
|
)
|
|
|
|
|
|
|
|
// BeginBlocker iterates over each asset and seizes coins from blocked addresses by returning them to the asset owner
|
|
|
|
func BeginBlocker(ctx sdk.Context, k keeper.Keeper) {
|
2020-08-21 22:56:20 +00:00
|
|
|
err := k.SeizeCoinsForBlockableAssets(ctx)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
2020-08-17 17:09:02 +00:00
|
|
|
}
|
2020-08-21 22:56:20 +00:00
|
|
|
k.SynchronizeBlockList(ctx)
|
|
|
|
k.UpdateTimeBasedSupplyLimits(ctx)
|
2020-08-17 17:09:02 +00:00
|
|
|
}
|